Mutation
mutation CreateCrew($input: CreateCrewInput!) {
createCrew(input: $input) {
result {
id
archivedAt
name
crewType
color
customLeadName
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"name": "string",
"crewType": "string"
}
}Response
{
"data": {
"createCrew": {
"result": {
"id": "id",
"archivedAt": "value",
"name": "string",
"crewType": "string",
"color": "string",
"customLeadName": "string"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
createCrew
MUTATION
createCrew(input: CreateCrewInput!): CreateCrewResult!Arguments
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation CreateCrew($input: CreateCrewInput!) {
createCrew(input: $input) {
result {
id
archivedAt
name
crewType
color
customLeadName
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"name": "string",
"crewType": "string"
}
}Response
{
"data": {
"createCrew": {
"result": {
"id": "id",
"archivedAt": "value",
"name": "string",
"crewType": "string",
"color": "string",
"customLeadName": "string"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}