Mutation
mutation CreateField($input: CreateFieldInput!) {
createField(input: $input) {
result {
id
name
label
description
fieldType
required
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"label": "string",
"fieldType": "string"
}
}Response
{
"data": {
"createField": {
"result": {
"id": "id",
"name": "string",
"label": "string",
"description": "string",
"fieldType": "string",
"required": true
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
createField
MUTATION
createField(input: CreateFieldInput!): CreateFieldResult!Arguments
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation CreateField($input: CreateFieldInput!) {
createField(input: $input) {
result {
id
name
label
description
fieldType
required
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"label": "string",
"fieldType": "string"
}
}Response
{
"data": {
"createField": {
"result": {
"id": "id",
"name": "string",
"label": "string",
"description": "string",
"fieldType": "string",
"required": true
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}