Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RelationIdLoader

Loads relation ids for the given entities.

Hierarchy

  • RelationIdLoader

Index

Constructors

constructor

Properties

Protected connection

connection: Connection

Protected queryRunner

queryRunner: QueryRunner | undefined

Protected relationIdAttributes

relationIdAttributes: RelationIdAttribute[]

Methods

load

Protected loadForManyToMany

Protected loadForManyToOneAndOneToOneOwner

Protected loadForOneToManyAndOneToOneNotOwner

loadManyToManyRelationIdsAndGroup

  • loadManyToManyRelationIdsAndGroup<E1, E2>(relation: RelationMetadata, entitiesOrEntities: E1 | E1[], relatedEntityOrEntities?: E2 | E2[]): Promise<object[]>
  • Loads relation ids of the given entities and groups them into the object with parent and children.

    todo: extract this method?

    Type parameters

    • E1

    • E2

    Parameters

    • relation: RelationMetadata
    • entitiesOrEntities: E1 | E1[]
    • Optional relatedEntityOrEntities: E2 | E2[]

    Returns Promise<object[]>

Generated using TypeDoc