A basic project to highlight the use of GraphQL via Apollo Server
-
It contains 3 main files:
- typeDefs.js - to define operations and data
- resolvers.js - to execute the operations
- server.js - to run the server
-
This project is meant to run on mongoDB and it defaults to mongodb://localhost:27017/react-apollo-tutorial
-
In order to use:
- Make sure mongoDB is installed and is running
- Run npm install to install all neccesary dependencies
- On command line: npm run server
- Open the url localhost:4000 to run the graphQL Playground