@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 708 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SearchMutations](./x-components.searchmutations.md) > [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<Result> & Pick<Result, 'id'> | A result containing at least an id, and the properties to modify. |
**Returns:**
void