Mutation
mutation CreateEquipment($input: CreateEquipmentInput!) {
createEquipment(input: $input) {
result {
id
label
description
active
ownedQuantity
extraQuantity
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"label": "string",
"position": 1
}
}Response
{
"data": {
"createEquipment": {
"result": {
"id": "id",
"label": "string",
"description": "string",
"active": true,
"ownedQuantity": 1,
"extraQuantity": 1
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
createEquipment
MUTATION
createEquipment(input: CreateEquipmentInput!): CreateEquipmentResult!Arguments
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation CreateEquipment($input: CreateEquipmentInput!) {
createEquipment(input: $input) {
result {
id
label
description
active
ownedQuantity
extraQuantity
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"label": "string",
"position": 1
}
}Response
{
"data": {
"createEquipment": {
"result": {
"id": "id",
"label": "string",
"description": "string",
"active": true,
"ownedQuantity": 1,
"extraQuantity": 1
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}