Simple object queries

Table of contents

You can fetch a single node or multiple nodes of the same type using a simple object query.

Fetch list of objects

For example, fetch a list of authors:

query {
  author {
    id
    name
  }
}
query { author { id name } }
{ "data": { "author": [ { "id": 1, "name": "Justin" }, { "id": 2, "name": "Beltran" }, { "id": 3, "name": "Sidney" }, { "id": 4, "name": "Anjela" } ] } }