Page Contents

Home > @loopback/repository > CrudRepository > updateAll

CrudRepository.updateAll() method

Updating matching records with attributes from the data object

Signature:

updateAll(dataObject: DataObject<T>, where?: Where<T>, options?: Options): Promise<Count>;

Parameters

Parameter Type Description
dataObject DataObject<T> The data to be updated
where Where<T> Matching criteria
options Options Options for the operations

Returns:

Promise<Count>

A promise of number of records updated