bearduk / graphql-cb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-cb

Served at http://localhost:4000/graphql

Test query:

{
  book (id: 2){
    name
    genre
    author{
      name
      books {
        name
      }
    }
  },
  author(id: 1){
    name
    age
    id
    books {
      name
    }
  }
}

Note that fields are wrapped in functions so that they can be rendered in the JS flow and then executed at a later time. fields: () => ({ //etc.

The RootQuery is the only one that can have a simple fields: { //etc.

About


Languages

Language:JavaScript 85.4%Language:CSS 8.0%Language:HTML 6.6%