---
lang: en
title: 'API docs: repository.crudconnector.createall'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.crudconnector.createall.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [CrudConnector](./repository.crudconnector.md) &gt; [createAll](./repository.crudconnector.createall.md)

## CrudConnector.createAll() method

Create multiple entities

<b>Signature:</b>

```typescript
createAll?(modelClass: Class<Entity>, entities: EntityData[], options?: Options): Promise<EntityData[]>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  modelClass | [Class](./repository.class.md)<!-- -->&lt;[Entity](./repository.entity.md)<!-- -->&gt; | The model class |
|  entities | [EntityData](./repository.entitydata.md)<!-- -->\[\] | An array of entity instances or data |
|  options | [Options](./repository.options.md) | Options for the operation |

<b>Returns:</b>

Promise&lt;[EntityData](./repository.entitydata.md)<!-- -->\[\]&gt;

A promise of an array of entities created


