A server boilerplate using GraphQL and MongoDB.
This is a server boilerplate using GraphQL and MongoDB. Support subscriptions using GraphQL Yoga.
- Clone this repo using
https://github.com/leonardomso/graphql-mongodb-server.git - Move to the appropriate directory:
cd graphql-mongodb-server. - Run
yarnornpm installto install dependencies. - Set
.envfile with your mongoURI. - Run
npm startto see the example app athttp://localhost:4000/playground.
npm start- start the playground athttp://localhost:4000/playground
MIT license, Copyright (c) 2018 Leonardo Maldonado.
