Page Contents

Home > @loopback/repository > HasManyThroughRepository

HasManyThroughRepository interface

CRUD operations for a target repository of a HasManyThrough relation

EXPERIMENTAL: This interface is not stable and may change in the near future. Backwards-incompatible changes may be introduced in semver-minor versions.

Signature:

export interface HasManyThroughRepository<Target extends Entity, TargetID, Through extends Entity> 

Methods

Method Description
create(targetModelData, options) Create a target model instance
delete(where, options) Delete multiple target model instances
find(filter, options) Find target model instance(s)
link(targetModelId, options) Creates a new many-to-many association to an existing target model instance
patch(dataObject, where, options) Patch multiple target model instances
unlink(targetModelId, options) Removes an association to an existing target model instance