| sidebar_position | 2 |
|---|---|
| description | Create API |
import StackBlitzGithub from '@site/src/components/StackBlitzGithub';
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.
Nested creates are executed in a transaction to ensure data integrity.