Creates a new entity from the given data.
The create data.
Optionaloptions: CreateOptionsAdditional options, like a transaction etc.
The newly created entity.
Creates all entities from the provided data array.
An array of create data, which each creates a new entity.
Optionaloptions: CreateAllOptionsAdditional options, eg. A transaction.
All newly created entities.
Deletes all entities that match the provided where filter.
The where filter to find the entities that should be deleted.
Optionaloptions: DeleteAllOptions<T>Additional options, like a transaction.
An array of all the updated entities.
Deletes an entity with the provided id.
The id of the entity to deleted.
Optionaloptions: BaseRepositoryOptionsAdditional options, like a transaction.
Finds all entities with the given options.
Optionaloptions: FindAllOptions<T>The options, including the where filter etc.
An array of found entities.
Finds all entities with the given options, in paginated form.
The page for which the entities should be found.
The limit of entities to receive for that page.
Optionaloptions: FindAllPaginatedOptions<T>Additional options including where filter etc.
A paginated result of the found entities.
Finds an entity by the given id.
The id of the entity to find.
Optionaloptions: FindByIdOptions<T>Additional options, eg. Transaction.
The found entity.
Finds a single entity with the given options.
The options, including the where filter etc.
Whether or not a result is required. Defaults to true.
The found result. If required is set to false, also undefined.
Updates all entities that match the provided where filter.
The where filter to find the entities that should be updated.
The data to update the entities with.
Optionaloptions: UpdateAllOptionsAdditional options, like a transaction.
An array of all the updated entities.
Updates an entity with the provided id.
The id of the entity to update.
The data to update the entity with.
Optionaloptions: UpdateByIdOptionsAdditional options, like a transaction.
The updated entity.
A repository that handles database related things for its entity.