@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 879 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewActions](./x-components.queriespreviewactions.md) > [fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md)
## QueriesPreviewActions.fetchQueryPreview() method
Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->.
**Signature:**
```typescript
fetchQueryPreview(request: SearchRequest): SearchResponse | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | SearchRequest | The request object to retrieve the query preview. |
**Returns:**
SearchResponse \| null
A search response based on the query.