Skip to main content

crudUpdate

crudUpdate<T>(crudUpdateConfigProp): Promise<GenericCrudResult<T>>

Create or update resource. Automatically validates the resource and runs runPreUpdateHandler and runAfterUpdateCrudHandler handlers

Type Parameters​

T​

T extends ResourceForUpdate

The type of the resource

Parameters​

crudUpdateConfigProp​

CrudUpdateConfig<T>

Configuration object containing update parameters.

Returns​

Promise<GenericCrudResult<T>>

A promise resolving to <T>.