This example explains you usage of GraphQl with ExpressJS services, later you can use the same setup with any other platform (Eg: Vue.js, AngularJS). mLabs is being used to store documents.
- ExpressJS
- ExpressJS GraphQl
- Mongoose
$ npm install
# Create a .env file on root with following secrets:
SECRET_KEY=YOUR_SUPER_SECRET_KEY_FOR_JWT
$ npm start
Kudos, you are all set with graphQl server.
Note: Default port is 3000 and end point is localhost:3000/graphql