Skip to content

hemanth/graphql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple graphql-demo, which exposes an endPoint which can be quiered for books.

Schema:

  type Book {
    id: ID!
    title: String!
    author: String!
    isbn: String!
    url: String!
  }

  type Query {
    allBooks: [Book!]!
  }

  type Mutation {
    createBook(title: String!, author: String!): Book
  }

Query samples:

query {
  allBooks {
    author,
    title
  }
}
query{
  allBooks(filter:{
    id:17
  }) {
    isbn
  }
}

Try the endPoint.

Old endPoint is still up.

P.S: If you looking for older version, you can find it here -> v1

Releases

No releases published

Packages

No packages published