Skip to content
On this page

DRIVERS query will return a collection of drivers (i.e. multiple drivers)


Query Structure:

drivers: [Driver]

Argument(s):

None


Response:

An array (collection) of drivers


This query will return all the fields of a DRIVER, as described in the types section. However, you can return whatever field(s) you choose.


Query Template:
query drivers{
  drivers {
    firstName
    lastName
  }
}


Example:
query {
  drivers {
    firstName
    lastName
  }
}

RESPONSE:
{
  "data": {
    "drivers": [
      {
        "firstName": "Max",
        "lastName": "Munstermann",
      }
    ]
  }
}