Creates a new entity from the given data. Internally this uses insert.
The create data.
Optional
options: 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.
Optional
options: 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.
Optional
options: OmitStrict<DeleteAllOptions<T>, "where">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.
Optional
options: BaseRepositoryOptionsAdditional options, like a transaction.
Finds all entities with the given options.
Optional
options: 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.
Optional
options: 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.
Optional
options: 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.
Optional
options: 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.
Optional
options: UpdateByIdOptionsAdditional options, like a transaction.
The updated entity.
A repository that handles database related things for its entity.