Mutation
mutation CreateJobConstraint($input: CreateJobConstraintInput!) {
createJobConstraint(input: $input) {
result {
id
constraintType
startDate
endDate
notes
insertedAt
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"constraintType": "string",
"startDate": "value",
"endDate": "value",
"jobId": "id"
}
}Response
{
"data": {
"createJobConstraint": {
"result": {
"id": "id",
"constraintType": "string",
"startDate": "value",
"endDate": "value",
"notes": "string",
"insertedAt": "value"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
createJobConstraint
MUTATION
createJobConstraint(input: CreateJobConstraintInput!): CreateJobConstraintResult!Arguments
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation CreateJobConstraint($input: CreateJobConstraintInput!) {
createJobConstraint(input: $input) {
result {
id
constraintType
startDate
endDate
notes
insertedAt
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"constraintType": "string",
"startDate": "value",
"endDate": "value",
"jobId": "id"
}
}Response
{
"data": {
"createJobConstraint": {
"result": {
"id": "id",
"constraintType": "string",
"startDate": "value",
"endDate": "value",
"notes": "string",
"insertedAt": "value"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}