Skip to main content
Version: Next

EntityLoader

Index

Constructors

constructor

Methods

normalizePopulate

populate

  • populate<Entity, Fields>(entityName: string, entities: Entity[], populate: boolean | PopulateOptions<Entity>[], options: EntityLoaderOptions<Entity, Fields, never>): Promise<void>
  • Loads specified relations in batch. This will execute one query for each relation, that will populate it on all the specified entities.


    Type parameters

    • Entity: object
    • Fields: string = ALL

    Parameters

    Returns Promise<void>