Generic repository providing CRUD operations over an entity type.
Since 0.1.0
findAll(options?: FindOptions): Promise<Entity[]>
Fetch entities with optional filtering, sorting, and pagination.
Since 0.2.0
findOne(options?: FindOptions): Promise<Entity | null>
Fetch the first entity matching the optional filter.
Update an existing entity by primary key.
Check whether an entity with the given primary key exists.
Since 0.1.0
count(options?: CountOptions): Promise<number>
Count entities with optional filtering.
Since 0.2.0
findPage(options: PageOptions): Promise<Page<Entity>>
Find a page of entities by cursor pagination.