Page Contents
Home > @loopback/repository > HasOneRepository > patch
HasOneRepository.patch() method
Patch the related target model instance
Signature:
patch(dataObject: DataObject<Target>, options?: Options): Promise<Count>;
Parameters
Parameter | Type | Description |
---|---|---|
dataObject | DataObject<Target> | The target model fields and their new values to patch |
options | Options |
Returns:
Promise<Count>
A promise which resolves the patched target model instances