Page Contents

Home > @loopback/repository > DefaultHasOneRepository

DefaultHasOneRepository class

Signature:

export declare class DefaultHasOneRepository<TargetEntity extends Entity, TargetID, TargetRepository extends EntityCrudRepository<TargetEntity, TargetID>> implements HasOneRepository<TargetEntity> 

Constructors

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

Properties

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

Methods

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