The mongoose model for this repository
The collection name, used also as controller route name
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 the ObjectID or throw an exception if invalid
The string ObjectID
Update only the specified property of the item
The item to update
Create or update an element
Generated using TypeDoc
Initialize the base repository