Skip to content
On this page

LOCATIONS query will return a collection of locations (i.e. multiple locations)


Query Structure:

locations: [Location]

Argument(s):

None


Response:

An array (collection) of locations.


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


Query Template:
query locations{
    locations{
     name
     address
    }
}


Example:
query {
  locations {
    name
    address
  }
}

RESPONSE:
{
  "data": {
    "locations": [
      {
        "name": "Jad Apotheke",
        "address": "Hermannstraße 223, 33813 Oerlinghausen, Deutschland, "
      },
      {
        "name": "Waldstrasse Apotheke",
        "address": "Waldstraße 113, 33813 Oerlinghausen, Deutschland, "
      }
    ]
  }
}