Entity
    Preparing search index...

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

    Enforcing knex entity loader for non-data-loader-based load methods. All loads through this loader will throw if the load is not successful.

    Type Parameters

    Index

    Constructors

    Properties

    metricsAdapter: IEntityMetricsAdapter

    Methods

    • Get cursor for a given entity that matches what loadPageAsync would produce. Useful for constructing pagination cursors for entities returned from other loader methods that can then be passed to loadPageAsync for pagination. Most commonly used for testing pagination behavior.

      Parameters

      • entity: TEntity

        The entity to get the pagination cursor for.

      Returns string

      The pagination cursor for the given entity.