EntityLoader
Index
Constructors
Methods
Constructors
constructor
Parameters
Returns EntityLoader
Methods
normalizePopulate
Parameters
entityName: string
populate: boolean | PopulateOptions<Entity> | (boolean | PopulateOptions<Entity>)[]
optionalstrategy: LoadStrategy
lookup: boolean = true
Returns PopulateOptions<Entity>[]
populate
Parameters
entityName: string
entities: Entity[]
populate: boolean | PopulateOptions<Entity>[]
options: EntityLoaderOptions<Entity, Fields, never>
Returns Promise<void>
Loads specified relations in batch. This will execute one query for each relation, that will populate it on all the specified entities.