This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk/query / ScopedMutationOptions

ScopedMutationOptions ​

Options of QueryScope.mutation.

Properties ​

gcTime? ​

optional gcTime?: number

The mutation's gcTime in TanStack Query. Omitted: the QueryClient default.


idempotencyKey? ​

optional idempotencyKey?: string

Fixed key for all calls of this mutation (only with idempotent). Empty text is ignored.


idempotent? ​

optional idempotent?: boolean

The method sends Idempotency-Key (it accepts options.idempotencyKey): the mutation passes on the open attempt's key (or idempotencyKey, when given). Default: false (no key passed on).