Skip to content

Function: createMutationIdempotency() ​

createMutationIdempotency<Context, TransactionContext>(options): MutationIdempotency<Context>

Defined in: fate/src/idempotency.ts:48

Enforces durable deduplication using the application's own transaction adapter.

Type Parameters ​

Context ​

Context

TransactionContext ​

TransactionContext = Context

Parameters ​

options ​

allowLegacyIdentities? ​

boolean

maxAge? ​

number

store ​

IdempotencyStore<Context, TransactionContext>

scope ​

(context) => string | Promise<string>

Returns ​

MutationIdempotency<Context>

Released under the MIT License