<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchMutations](./x-components.searchmutations.md) &gt; [updateResult](./x-components.searchmutations.updateresult.md)

## SearchMutations.updateResult() method

Updates a result with new fields.

**Signature:**

```typescript
updateResult(result: Partial<Result> & Pick<Result, 'id'>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  result | Partial&lt;Result&gt; &amp; Pick&lt;Result, 'id'&gt; | A result containing at least an id, and the properties to modify. |

**Returns:**

void

