Skip to main content
Skip to main content

create - User Module Reference

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

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

This method creates users.

Example

{example-code}

Parameters

dataCreateUserDTO[]Required
The users to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<UserDTO[]>Required
The created users.

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

This method creates a user.

Example

{example-code}

Parameters

dataCreateUserDTORequired
The user to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

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