Closed LanceGundersen closed 5 years ago
Working.
It can be improved by using defaults, if they do not exist.
mutation {
createPerson(newPerson: {
fullName: "john deerly"
lastStatusOfPersonId: 1
}) {
id
fullName
internalEmployeeType{
long
}
positionAppliedFor
}
}
{
"data": {
"createPerson": {
"id": 37,
"fullName": "john deerly",
"internalEmployeeType": {
"long": "Not an employee"
},
"positionAppliedFor": ""
}
}
}
Need a mutation for handling a person