Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > createReferencesManyAccessorFor

SequelizeCrudRepository.createReferencesManyAccessorFor() method

Function to create a references many accessor

Signature:

protected createReferencesManyAccessorFor<Target extends Entity, TargetId>(relationName: string, targetRepoGetter: Getter<EntityCrudRepository<Target, TargetId>>): ReferencesManyAccessor<Target, ID>;

Parameters

Parameter Type Description
relationName string Name of the relation defined on the source model
targetRepoGetter Getter<EntityCrudRepository<Target, TargetId>>  

Returns:

ReferencesManyAccessor<Target, ID>