<!-- 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() 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

