Page Contents

Home > @loopback/repository > HasManyThroughRepository > patch

HasManyThroughRepository.patch() method

Patch multiple target model instances

Signature:

patch(dataObject: DataObject<Target>, where?: Where<Target>, options?: Options & {
        throughOptions?: 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 & { throughOptions?: Options; }  

Returns:

Promise<Count>

A promise which resolves the patched target model instances