1 | import { Entity } from '../../model';
|
2 | import { EntityCrudRepository } from '../../repositories';
|
3 | import { Getter, InclusionResolver, ReferencesManyDefinition } from '../relation.types';
|
4 | /**
|
5 | * Creates InclusionResolver for ReferencesMany relation.
|
6 | * Notice that this function only generates the inclusionResolver.
|
7 | * It doesn't register it for the source repository.
|
8 | *
|
9 | * Notice: scope field for inclusion is not supported yet
|
10 | *
|
11 | * @param meta - resolved ReferencesManyMetadata
|
12 | * @param getTargetRepo - target repository i.e where related instances are
|
13 | */
|
14 | export declare function createReferencesManyInclusionResolver<Target extends Entity, TargetIds, TargetRelations extends object>(meta: ReferencesManyDefinition, getTargetRepo: Getter<EntityCrudRepository<Target, TargetIds, TargetRelations>>): InclusionResolver<Entity, Target>;
|