FanoutInput

tagtree · /core·interface

Arguments to computeFanout describing which entity to expand and the optional tenant and param values that narrow the resulting tag set.

Properties

entity
string
Name of the entity declared in the schema to expand into invalidation tags.
params?
Record<string, string | number>
Per-entity parameter values that produce a leaf tag when all declared params are present.
tenant?
T
Tenant value whose key is prepended to all tags when the schema defines a ``TenantConfig``.

Example

const tags = computeFanout(mySchema.schema, {
    entity: 'product',
    tenant: shop,
    params: { id: '123' },
});

ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape

Sourcefanout.ts:17Edit the JSDoc directly

On this page