Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 607 Bytes

README.md

File metadata and controls

71 lines (48 loc) · 607 Bytes

Graphql-react-node-mongo-apollo

A full stack bookstore application

Nodejs

Graphql

MongoDB

React

Apollo client

How to run cd client

npm install

npm start

cd server

npm install

npm start

graphql basics chrome graphiql tool react-apollo node mongo

mutation{
  addBook(name:"the tales of kenyan njahi",genre:"African tale",authorId:"6134d545dc4ac474323b0000"){
    name
    genre

  }
}
 ### queries

{
  books{
    name
    genre
  }
}
{
  authors{
    name
    age
  }
}
{
  author(id:"6134d545dc4ac474323b0000"){
    name
    
  age
    books{
      name
    }
  }
}