Entity
    Preparing search index...

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

    Entity invalidation utilities. Methods are exposed publicly since in rare cases they may need to be called manually.

    Type Parameters

    Index

    Constructors

    Properties

    metricsAdapter: IEntityMetricsAdapter

    Methods

    • Invalidate all caches and local dataloaders for an entity. One potential use case would be to keep the entity framework in sync with changes made to data outside of the framework.

      Parameters

      • entity: TEntity

        entity to be invalidated

      Returns Promise<void>

    • Invalidate all caches and local dataloaders for an entity's fields. Exposed primarily for internal use by EntityMutator.

      Parameters

      • objectFields: Readonly<TFields>

        entity data object to be invalidated

      Returns Promise<void>