<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@workgrid/client](./client.md) &gt; [Client](./client.client.md) &gt; [mutate](./client.client.mutate.md)

## Client.mutate() method

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
> 

Invoke a mutation

<b>Signature:</b>

```typescript
mutate<K extends keyof Mutations, M extends Mutation = Mutations[K]>(mutationKey: MutationKey<K, M>, variables?: M['TVariables'], options?: MutationOptions<M['TData'], M['TError'], M['TVariables'], M['TContext']>): Promise<M['TData']>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  mutationKey | MutationKey&lt;K, M&gt; | The mutation key (must be pre-defined) |
|  variables | M\['TVariables'\] | The appropriate variables |
|  options | MutationOptions&lt;M\['TData'\], M\['TError'\], M\['TVariables'\], M\['TContext'\]&gt; | Any additional mutation options |

<b>Returns:</b>

Promise&lt;M\['TData'\]&gt;

The mutation result

