Page Contents

Home > @loopback/repository > CrudConnector > update

CrudConnector.update() method

Update an entity

Signature:

update?(modelClass: Class<Entity>, entity: EntityData, options?: Options): Promise<boolean>;

Parameters

Parameter Type Description
modelClass Class<Entity> The model class
entity EntityData The entity instance or data
options Options Options for the operation

Returns:

Promise<boolean>

Promise if an entity is updated, otherwise Promise