<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) &gt; [setSelectedQuery](./x-components.relatedpromptsmutations.setselectedquery.md)

## RelatedPromptsMutations.setSelectedQuery property

Sets the selected next query.

**Signature:**

```typescript
setSelectedQuery: (index: number) => void;
```
