Page Contents
Home > @loopback/repository > DefaultHasManyThroughRepository
DefaultHasManyThroughRepository class
a class for CRUD operations for hasManyThrough relation.
Warning: The hasManyThrough interface is experimental and is subject to change. If backwards-incompatible changes are made, a new major version may not be released.
Signature:
export declare class DefaultHasManyThroughRepository<TargetEntity extends Entity, TargetID, TargetRepository extends EntityCrudRepository<TargetEntity, TargetID>, ThroughEntity extends Entity, ThroughID, ThroughRepository extends EntityCrudRepository<ThroughEntity, ThroughID>> implements HasManyThroughRepository<TargetEntity, TargetID, ThroughEntity>
Implements: HasManyThroughRepository<TargetEntity, TargetID, ThroughEntity>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(getTargetRepository, getThroughRepository, getTargetConstraintFromThroughModels, getTargetKeys, getThroughConstraintFromSource, getTargetIds, getThroughConstraintFromTarget) | Constructs a new instance of the DefaultHasManyThroughRepository class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| getTargetConstraintFromThroughModels | (throughInstances: ThroughEntity[]) => DataObject<TargetEntity> | ||
| getTargetIds | (targetInstances: TargetEntity[]) => TargetID[] | ||
| getTargetKeys | (throughInstances: ThroughEntity[]) => TargetID[] | ||
| getTargetRepository | Getter<TargetRepository> | ||
| getThroughConstraintFromSource | () => DataObject<ThroughEntity> | ||
| getThroughConstraintFromTarget | (targetID: TargetID[]) => DataObject<ThroughEntity> | ||
| getThroughRepository | Getter<ThroughRepository> |