Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 741 Bytes

File metadata and controls

24 lines (16 loc) · 741 Bytes
sidebar_position 2
description Create API

import StackBlitzGithub from '@site/src/components/StackBlitzGithub';

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 to createMany, but returns the created records.

Nested creates are executed in a transaction to ensure data integrity.

Samples