Mutations
Mutations are defined for the operations Create, Update, and Delete.
create
createPatient(patient: $Patient) { resource { id ... } }
Like the API, the Patient resource might or might not have an ID; if it is present, the value is overwritten by the server.
update
updatePatient(id: $ID, patient: $Patient) { resource { id ... } }
delete
deletePatient(id: $ID) { information { success } }
The parameters are input types that are resources that exactly match the output types. If these operations fail, an http error is returned. For detailed GraphQL examples please refer to the GraphQL Interface Specification Schema Definition (GID-2510465)