@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 807 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RecommendationsMutations](./x-components.recommendationsmutations.md) > [updateRecommendation](./x-components.recommendationsmutations.updaterecommendation.md)
## RecommendationsMutations.updateRecommendation() method
Updates a recommendation with new fields.
**Signature:**
```typescript
updateRecommendation(recommendation: Partial<Result> & Pick<Result, 'id'>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| recommendation | Partial<Result> & Pick<Result, 'id'> | A recommendation containing at least an id and the properties to modify. |
**Returns:**
void