UNPKG

@loopback/docs

Version:
38 lines (24 loc) 1.07 kB
--- lang: en title: 'API docs: repository.crudrepository.updateall' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.repository.crudrepository.updateall.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [CrudRepository](./repository.crudrepository.md) &gt; [updateAll](./repository.crudrepository.updateall.md) ## CrudRepository.updateAll() method Updating matching records with attributes from the data object <b>Signature:</b> ```typescript updateAll(dataObject: DataObject<T>, where?: Where<T>, options?: Options): Promise<Count>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | dataObject | <code>DataObject&lt;T&gt;</code> | The data to be updated | | where | <code>Where&lt;T&gt;</code> | Matching criteria | | options | <code>Options</code> | Options for the operations | <b>Returns:</b> `Promise<Count>` A promise of number of records updated