elrickvm / relay-packt

Packt Developers Relay.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starting Mongo DB

Two ways to start the DB

  1. As a Mac Service
  • brew services start mongodb-community@5.0
  • brew services stop mongodb-community@5.0
  1. 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

Generate Schema

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

Resources

Relay Repl

https://relay-compiler-repl.netlify.app/

About

Packt Developers Relay.


Languages

Language:TypeScript 49.4%Language:JavaScript 46.9%Language:HTML 3.7%