Returns the number of entities.
Deletes a given entity.
Deletes the given entities, or all when no arguments are provided.
Deletes the entity with the given id.
Returns whether an entity with the given ID exists.
Returns all instances of the type.
Returns all instances of the type T
with the given IDs.
If some or all ids are not found, no entities are returned for these IDs.
Note that the order of elements in the result is not guaranteed.
Retrieves an entity by its ID.
Saves a given entity. Use the returned instance for further operations as the save operation might have changed the entity instance.
Saves all given entities.
Generated using TypeDoc
Interface for generic CRUD operations on a repository for a specific entity.
It is assumed that all operations are asynchronous and could fail, thus returning an
Either
monad.