Skip to main content

Create one

A successful create returns 201 Created with the serialized record.

Update one

A successful update returns 200 OK with the updated record. Make update DTO properties nullable/optional so clients can submit partial updates.

Delete one

A successful delete returns 200 OK with the deleted record data supplied by the query service. Set useSoftDelete: true when the persistence adapter and service support soft deletion:

Disable or customize mutations

You can also supply custom CreateOneInput or UpdateOneInput classes when the generated body type is not sufficient. For application-level transformations, use hooks; for record-level access rules, use authorization. Edit this page