Skip to content

AbdallahAbuhussein/graphql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-demo

Sample queries:

Get all book names:

{
  books {
    name
  }
}

Get all book names with auther names

{
  books {
    name,
    author{
      name
    }
  }
}



Get all books by auther id:

{
  author(id : 1){
    name,
    books{
      name
    }
  }
}

Add new book

mutation {
  addBook(name: "new book", authorId: 1){
    name,
    id
  }
}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published