Two ways to start the DB
- As a Mac Service
- brew services start mongodb-community@5.0
- brew services stop mongodb-community@5.0
- As a background process
- Intel Macs
- mongod --config /usr/local/etc/mongod.conf --fork
- Apple M1 Macs
- mongod --config /opt/homebrew/etc/mongod.conf --fork
We can generate the schema from the server implementation
using a package from Prisma-Labs called get-graphql-schema
[https://github.com/prisma-labs/get-graphql-schema]
Usage: get-graphql-schema [OPTIONS] ENDPOINT_URL > schema.graphql