Repository.createBulk() method
Insert many rows in one statement, and return them.
Signature:
createBulk<Row = Entity>(args: {
input: readonly object[];
select?: Select | undefined;
}): Promise<Row[]>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
args |
{ input: readonly object[]; select?: Select | undefined; } |
Returns:
Promise<Row[]>
Remarks
One INSERT rather than one per row, which is what makes copying a table's worth of rows a single round trip. A nested relation is not accepted here: the rows go in flat.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.