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