<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SemanticQueriesActions](./x-components.semanticqueriesactions.md) &gt; [fetchAndSaveSemanticQuery](./x-components.semanticqueriesactions.fetchandsavesemanticquery.md)

## SemanticQueriesActions.fetchAndSaveSemanticQuery() method

Requests the semantic queries similar to the requested query and saves them in the state.

**Signature:**

```typescript
fetchAndSaveSemanticQuery(request: SemanticQueriesRequest | null): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  request | SemanticQueriesRequest \| null | The request object to retrieve the semantic queries. |

**Returns:**

void

