Page Contents

Home > @loopback/repository > DefaultHasManyRepository

DefaultHasManyRepository class

Signature:

export declare class DefaultHasManyRepository<TargetEntity extends Entity, TargetID, TargetRepository extends EntityCrudRepository<TargetEntity, TargetID>> implements HasManyRepository<TargetEntity> 

Constructors

Constructor Modifiers Description
(constructor)(getTargetRepository, constraint)   Constructor of DefaultHasManyEntityCrudRepository

Properties

Property Modifiers Type Description
constraint   DataObject<TargetEntity>  
getTargetRepository   Getter<TargetRepository>  

Methods

Method Modifiers Description
create(targetModelData, options)    
delete(where, options)    
find(filter, options)    
patch(dataObject, where, options)