Initialize RolesRepository
The injected RoleSchema model
The collection name, used also as controller route name
The mongoose model for this repository
The injected RoleSchema model
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]])
Gets or create a role. Reject with an error if the operation fails
The role type
The role name
Update only the specified property of the item
The item to update
Create or update an element
Generated using TypeDoc
The Role repository