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

Reference / @getenginex/sdk/extension / MutationCall

MutationCall<I, R> ​

What an adapter needs to build the mutationFn with its own attempt (e.g. one per hook instance). For SDK packages and adapters, not for apps.

Type Parameters ​

I ​

I

R ​

R

Properties ​

call ​

call: (input, options) => Promise<R>

Calls the client method with the input and the call options.

Parameters ​

input ​

I

options ​

CallOptions

Returns ​

Promise<R>


fixedKey ​

fixedKey: string | undefined

Fixed key from the options (it wins over the attempt); undefined when there is none.


idempotent ​

idempotent: boolean

The method sends Idempotency-Key.