Skip to main content
Version: Next

Interface: CrudOperations

Mapping of CRUD operations to their options.

Each key enables the matching operation; an empty object enables it with Wasp's defaults. Default get, update, and delete implementations use the field marked with @id in the Prisma schema as the entity ID.

Extends

Properties

create?

optional create?: CrudOperationOptions

Inherited from

CrudOperations.create


delete?

optional delete?: CrudOperationOptions

Inherited from

CrudOperations.delete


get?

optional get?: CrudOperationOptions

Inherited from

CrudOperations.get


getAll?

optional getAll?: CrudOperationOptions

Inherited from

CrudOperations.getAll


update?

optional update?: CrudOperationOptions

Inherited from

CrudOperations.update