Page Contents

Home > @loopback/repository > DefaultHasManyThroughRepository > (constructor)

DefaultHasManyThroughRepository.(constructor)

Constructs a new instance of the DefaultHasManyThroughRepository class

Signature:

constructor(getTargetRepository: Getter<TargetRepository>, getThroughRepository: Getter<ThroughRepository>, getTargetConstraintFromThroughModels: (throughInstances: ThroughEntity[]) => DataObject<TargetEntity>, getTargetKeys: (throughInstances: ThroughEntity[]) => TargetID[], getThroughConstraintFromSource: () => DataObject<ThroughEntity>, getThroughConstraintFromTarget: (targetID: TargetID[]) => DataObject<ThroughEntity>);

Parameters

Parameter Type Description
getTargetRepository Getter<TargetRepository>  
getThroughRepository Getter<ThroughRepository>  
getTargetConstraintFromThroughModels (throughInstances: ThroughEntity[]) => DataObject<TargetEntity>  
getTargetKeys (throughInstances: ThroughEntity[]) => TargetID[]  
getThroughConstraintFromSource () => DataObject<ThroughEntity>  
getThroughConstraintFromTarget (targetID: TargetID[]) => DataObject<ThroughEntity>