Query
query ProtocolSites($protocolId: String!) {
protocolSites(protocolId: $protocolId) {
children {
__typename
}
id
isSite
location
parentId
tags
}
}Variables
{
"protocolId": "string"
}Response
{
"data": {
"protocolSites": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
]
}
}Queries
protocolSites
The sites a protocol is restricted to. An empty list means the protocol is available at every site.
QUERY
protocolSites(protocolId: String!): [Location!]!Arguments
protocolId
String!
required
Id of the protocol.
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 ProtocolSites($protocolId: String!) {
protocolSites(protocolId: $protocolId) {
children {
__typename
}
id
isSite
location
parentId
tags
}
}Variables
{
"protocolId": "string"
}Response
{
"data": {
"protocolSites": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
]
}
}