Initialize UsersRepository
The collection name, used also as controller route name
The mongoose model for this repository
Creates a new item
The item to create
Delete an existing element
The element identifier
Return all elements matching the specified query
Return a the first element matching the specified query
The query. If not specified return the first collection element
Return the item with specified id if exists, null otherwise.
The item identifier (id property of [[BaseEntity]])
Return all users with role matching al least one of the given roles
Return the user if the email and password are matching, null otherwise
The user email
The user password
Update only the specified property of the item
The item to update
Create a new user
The user to register
Create or update an element
Update the own user profile
The user to update
Generated using TypeDoc
The user repository