Skip to content

thekosmix/graphql-nodejs-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-nodejs-mongo

Graphql implementation in nodejs with mongo as database

Key functionalities

  • Mutation to add/update data
  • Query to get nested data

How to run

Webserver

git clone https://github.com/thekosmix/graphql-nodejs-mongo

cd graphql-nodejs-mongo

node app.js

Querying using GraphiQL

  1. Open GraphiQL
  2. Type your first query as
{
  authors{
    name
    age
  }
}
  1. Press ▷ button on top left corner

Screenshots

Query data

All Authors All Books Book with id

Add data

Add Author Add Book

Releases

No releases published

Packages

No packages published