Delete
Deleting records can be done with the following methods:
delete
- Delete a single, unique record.deleteMany
- Delete multiple records that match the query criteria.deleteManyAndReturn
- Similar todeleteMany
, but returns the deleted records
You can also delete records as part of an update
operation from a relation. See Manipulating relations for details.
Samples​
- Plain Code
- Interactive Sample
main.ts
Loading...
Click here to pop out if the embed doesn't load an interactive terminal.