Reference / @getenginex/sdk/extension / mutationCallOf
mutationCallOf()
mutationCallOf<
I,R>(options):MutationCall<I,R> |undefined
Reads the MutationCall from SDK mutation options, or undefined for options from another origin (or a spread copy, which does not carry the non-enumerable symbol: read from the original options).
Type Parameters
I
I
R
R
Parameters
options
object
Returns
MutationCall<I, R> | undefined
Example
ts
const call = mutationCallOf<Input, Result>(options)
if (call) options = { ...options, mutationFn: (input) => runMutation(call, attempts, input) }Throws
Never throws.