Skip to main content
Skip to main content

update - User Module Reference

This documentation provides a reference to the update method. This belongs to the User Module.

update(data, sharedContext?): Promise<UserDTO[]>

This method updates existing users.

Example

{example-code}

Parameters

dataUpdateUserDTO[]Required
The attributes to update in each user.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<UserDTO[]>Required
The updated users.

update(data, sharedContext?): Promise<UserDTO>

This method updates an existing user.

Example

{example-code}

Parameters

dataUpdateUserDTORequired
The attributes to update in the user.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<UserDTO>Required
The updated user.
Was this section helpful?