A Simple CRUD App Using GraphQL, NodeJS, Apollo, and MongoDB
Clone the repo. Make sure you have MongoDB installed and running.
Install dependencies.
npm installRun the server.
npm startGo to http://localhost:4000/graphql and start playing with GraphQL.
Below is a simple query to add data:
mutation {
addMovie(name: "GraphQL Movie", producer: "John doe", rating: 9.5) {
id
name
rating
producer
}
}👋 Say hi @saqibameen on Twitter →