Page Contents

Home > @loopback/repository > CrudRepository

CrudRepository interface

Basic CRUD operations for ValueObject and Entity. No ID is required.


export interface CrudRepository<T extends ValueObject | Entity, Relations extends object = {}> extends Repository<T> 

Extends: Repository<T>


Method Description
count(where, options) Count matching records
create(dataObject, options) Create a new record
createAll(dataObjects, options) Create all records
deleteAll(where, options) Delete matching records
find(filter, options) Find matching records
updateAll(dataObject, where, options) Updating matching records with attributes from the data object