Class EnforcingEntityLoader<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields> Constructorsconstructor new Enforcing Entity Loader < TFields , TID , TViewerContext , TEntity , TPrivacyPolicy , TSelectedFields > ( entityLoader ) : EnforcingEntityLoader < TFields , TID , TViewerContext , TEntity , TPrivacyPolicy , TSelectedFields > Methodsload By Field Equaling Async load By Field Equaling Async < N > ( uniqueFieldName , fieldValue ) : Promise < null | TEntity > Type Parameters N extends string | number | symbol Parameters uniqueFieldName : N fieldValue : NonNullable < TFields [ N ] > Returns Promise < null | TEntity > load ByIDNullable Async load ByIDNullable Async ( id ) : Promise < null | TEntity > Returns Promise < null | TEntity > load First By Field Equality Conjunction Async load First By Field Equality Conjunction Async < N > ( fieldEqualityOperands , querySelectionModifiers ) : Promise < null | TEntity > Type Parameters N extends string | number | symbol Returns Promise < null | TEntity > load Many By Field Equaling Async load Many By Field Equaling Async < N > ( fieldName , fieldValue ) : Promise < readonly TEntity [] > Type Parameters N extends string | number | symbol Parameters fieldName : N fieldValue : NonNullable < TFields [ N ] > Returns Promise < readonly TEntity [] > load Many By Field Equaling Many Async load Many By Field Equaling Many Async < N > ( fieldName , fieldValues ) : Promise < ReadonlyMap < NonNullable < TFields [ N ] > , readonly TEntity [] > > Type Parameters N extends string | number | symbol Parameters fieldName : N fieldValues : readonly NonNullable < TFields [ N ] > [] Returns Promise < ReadonlyMap < NonNullable < TFields [ N ] > , readonly TEntity [] > > load Many By Field Equality Conjunction Async load Many By Field Equality Conjunction Async < N > ( fieldEqualityOperands , querySelectionModifiers ? ) : Promise < readonly TEntity [] > Type Parameters N extends string | number | symbol Returns Promise < readonly TEntity [] > load Many ByIDs Async load Many ByIDs Async ( ids ) : Promise < ReadonlyMap < TID , TEntity > > Returns Promise < ReadonlyMap < TID , TEntity > > load Many ByIDs Nullable Async load Many ByIDs Nullable Async ( ids ) : Promise < ReadonlyMap < TID , null | TEntity > > Returns Promise < ReadonlyMap < TID , null | TEntity > > load Many By Raw Where Clause Async load Many By Raw Where Clause Async ( rawWhereClause , bindings , querySelectionModifiers ? ) : Promise < readonly TEntity [] > Returns Promise < readonly TEntity [] >
Enforcing entity loader. All normal loads are batched, cached, and authorized against the entity's EntityPrivacyPolicy. All loads through this loader will throw if the load is not successful.