@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 637 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) > [setSelectedQuery](./x-components.relatedpromptsmutations.setselectedquery.md)
## RelatedPromptsMutations.setSelectedQuery() method
Sets the selected next query.
**Signature:**
```typescript
setSelectedQuery(index: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The new selected next query. |
**Returns:**
void