---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/extension/functions/mutationCallOf.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/extension](../index.md) / mutationCallOf

# mutationCallOf()

> **mutationCallOf**<`I`, `R`>(`options`): [`MutationCall`](../interfaces/MutationCall.md)<`I`, `R`> | `undefined`

Reads the [MutationCall](../interfaces/MutationCall.md) 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`](../interfaces/MutationCall.md)<`I`, `R`> | `undefined`

## Example

```ts
const call = mutationCallOf<Input, Result>(options)
if (call) options = { ...options, mutationFn: (input) => runMutation(call, attempts, input) }
```

## Throws

Never throws.
