Graphql implementation in nodejs with mongo as database
- Mutation to add/update data
- Query to get nested data
git clone https://github.com/thekosmix/graphql-nodejs-mongo
cd graphql-nodejs-mongo
node app.js
- Open GraphiQL
- Type your first query as
{
authors{
name
age
}
}
- Press ▷ button on top left corner