# Repository.createBulk() method · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.repository.createbulk/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Insert many rows in one statement, and return them.

**Signature:**

```typescript
createBulk<Row = Entity>(args: {
        input: readonly object[];
        select?: Select | undefined;
    }): Promise<Row[]>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| args | { input: readonly object\[\]; select?: [Select](https://imqueue.org/api/pg-prisma/latest/pg-prisma.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.

