MIKEL-Inc / resume

Resume parsing and searching application.
MIT License
3 stars 0 forks source link

GraphQL Person Mutation #17

Closed LanceGundersen closed 5 years ago

LanceGundersen commented 5 years ago

Need a mutation for handling a person

chrisBosse commented 5 years ago

Working.

It can be improved by using defaults, if they do not exist.

chrisBosse commented 5 years ago
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": ""
    }
  }
}