Skip to content
On this page

LOCATION query will return a single location with selected field(s)


Query Structure:

location(locationid: ID!): Location

Argument(s):

This query must be made with a Location ID as argument:

  1. Location Id

    locationid : ID - the unique identifier of a Location (compulsory)


Response:

An object containing details of a single location (pharmacy)


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 location($locationid: ID!){
    location(locationid:$locationid){
     name
     system
     type
     id
    }
}

//Variables
{ "locationid": " }


Example:
query {
  location (locationid: "0a839781-73a3-387e-25eb-54d82627042d") {
    name
    system
    type
    id
  }
}

RESPONSE:
{
  "data": {
    "location": {
      "name": "Jad Apotheke",
      "system": "cida_nova_plus",
      "type": "branch",
      "id": "0a839781-73a3-387e-25eb-54d82627042d"
    }
  }
}