Skip to content

Multiple entity queries

Igor Dianov edited this page May 29, 2024 · 2 revisions

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

For Example:

query {
  Authors {
    select {
      name
    }
  }
}

Will return:

{
  "data": {
    "Authors": {
      "select": [
        {
          "name": "Leo Tolstoy"
        },
        {
          "name": "Anton Chekhov"
        },
        {
          "name": "Igor Dianov"
        }
      ]
    }
  }
}