evyos-frontend-development/backend/src/people/queries.graphql

53 lines
855 B
GraphQL

mutation CreatePerson {
createPerson(input: {
firstName: "John",
surname: "Doe",
middleName: "Michael",
sexCode: "M",
personRef: "REF12345",
personTag: "TAG001",
fatherName: "Robert",
motherName: "Jane",
countryCode: "US",
nationalIdentityId: "12345678901",
birthPlace: "New York",
birthDate: "1990-01-01T00:00:00.000Z",
taxNo: "987654321",
birthname: "Johnathan"
}) {
_id
firstName
surname
birthDate
}
}
query GetPerson {
Person(id: "69175eec7baea04628ad126c") {
_id
firstName
surname
middleName
sexCode
birthDate
}
}
query {
Persons {
firstName
surname
middleName
sexCode
personRef
personTag
fatherName
motherName
countryCode
nationalIdentityId
birthPlace
birthDate
taxNo
birthname
}
}