Page Contents
Home > @loopback/repository > CrudConnector > updateAll
CrudConnector.updateAll() method
Update matching entities
Signature:
updateAll(modelClass: Class<Entity>, data: EntityData, where?: Where<Entity>, options?: Options): Promise<Count>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| modelClass | Class<Entity> | The model class |
| data | EntityData | The data attributes to be updated |
| where | Where<Entity> | The matching criteria |
| options | Options | Options for the operation |
Returns:
Promise<Count>
A promise of number of matching entities deleted