Page Contents

Home > @loopback/repository > HasManyRepository > patch

HasManyRepository.patch() method

Patch multiple target model instances

Signature:

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

Parameters

Parameter Type Description
dataObject DataObject<Target> The fields and their new values to patch
where Where<Target> Instances within the where scope are patched
options Options  

Returns:

Promise<Count>

A promise which resolves the patched target model instances