Entity
    Preparing search index...

    Class AuthorizationResultBasedKnexEntityLoader<TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>

    Authorization-result-based knex entity loader for non-data-loader-based load methods. All loads through this loader are results (or null for some loader methods), where an unsuccessful result means an authorization error or entity construction error occurred. Other errors are thrown.

    Type Parameters

    Index

    Constructors

    Properties

    metricsAdapter: IEntityMetricsAdapter

    Methods

    • Count entities matching the conjunction of field equality operands. This does not perform authorization since count does not load full entities. Note that this should be used with the same caution as loadManyByFieldEqualityConjunctionAsync regarding indexing since counts can be expensive on large datasets without appropriate indexes.

      Type Parameters

      • N extends string | number | symbol

      Parameters

      Returns Promise<number>

      count of entities matching the filters