Page Contents
Home > @loopback/repository > DefaultCrudRepository > updateById
DefaultCrudRepository.updateById() method
Signature:
updateById(id: ID, data: DataObject<T>, options?: Options): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | ID | |
| data | DataObject<T> | |
| options | Options |
Returns:
Promise<void>