Query
query ProtocolVersions($id: String!) {
protocolVersions(id: $id) {
author {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
createdAt
id
name
users {
__typename
}
}
}
image
name
status
tags
updatedAt
}
}Variables
{
"id": "string"
}Response
{
"data": {
"protocolVersions": [
{
"author": {
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"__typename": "User"
}
]
}
]
},
"image": "string",
"name": "string",
"status": "string",
"tags": [
"string"
],
"updatedAt": "value"
}
]
}
}Queries
protocolVersions
Every version of a protocol. Empty if there is no protocol with that id.
QUERY
protocolVersions(id: String!): [ProtocolVersion!]!Arguments
id
String!
required
Id of the protocol.
Returns
[ProtocolVersion!]!
author
User!
The user credited as the protocol's author.
image
String
Identifier of the protocol's cover image file.
name
String!
Name of the protocol.
status
String!
One of 'DRAFT' (Draft) or 'PUBLISHED' (Published).
tags
[String!]!
Tags applied to the protocol. Empty if there are no tags.
updatedAt
DateTime!
When this version was last modified.
version
Int!
Version number of the protocol, starting at 1.
versionLabel
String!
Display label of the version, for example 'v2'.
Query
query ProtocolVersions($id: String!) {
protocolVersions(id: $id) {
author {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
createdAt
id
name
users {
__typename
}
}
}
image
name
status
tags
updatedAt
}
}Variables
{
"id": "string"
}Response
{
"data": {
"protocolVersions": [
{
"author": {
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"__typename": "User"
}
]
}
]
},
"image": "string",
"name": "string",
"status": "string",
"tags": [
"string"
],
"updatedAt": "value"
}
]
}
}