<!-- 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; [setFacets](./x-components.searchmutations.setfacets.md)

## SearchMutations.setFacets() method

Sets the facets of the module.

**Signature:**

```typescript
setFacets(facets: Facet[]): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  facets | Facet\[\] | The new facets to save to the state. |

**Returns:**

void

