Page Contents
Home > @loopback/repository > EntityCrudRepository > update
EntityCrudRepository.update() method
Update an entity
Signature:
update(entity: DataObject<T>, options?: Options): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
entity | DataObject<T> | Entity to be updated |
options | Options | Options for the operations |
Returns:
Promise<void>
A promise that will be resolve if the operation succeeded or will be rejected if the entity was not found.