Create
The create series of APIs are used to create new records in the database. It has the following methods:
createCreate a single record, optionally with nested relations.createManyCreate multiple records in a single operation. Nested relations are not supported. Only the number of records created is returned.createManyAndReturnSimilar tocreateMany, but returns the created records.
Samples​
- Plain Code
- Interactive Sample
create.ts
Loading...
Click here to pop out if the embed doesn't load an interactive terminal.