Query
query Locations {
locations {
children {
__typename
}
id
isSite
location
parentId
tags
}
}Response
{
"data": {
"locations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
]
}
}Queries
locations
All locations in the organization, or only those carrying one of the given tags.
QUERY
locations(tags: [String!]): [Location!]!Arguments
tags
[String!]
Tags to filter by: any of 'inventory' (Inventory), 'inspections' (Inspections) or 'incidents' (Incidents).
Returns
[Location!]!
children
[Location!]!
Locations directly under this one. Empty if there are no child locations.
id
Int!
Id of the location.
isSite
Boolean!
True when the location is a site.
location
String!
Name of the location.
parentId
Int
Id of the location this one sits under.
tags
[String!]
Where the location can be picked: any of 'inventory' (Inventory), 'inspections' (Inspections) or 'incidents' (Incidents). Empty if there are no tags.
Query
query Locations {
locations {
children {
__typename
}
id
isSite
location
parentId
tags
}
}Response
{
"data": {
"locations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
]
}
}