<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [setQuery](./x-components.setquery.md)

## setQuery() function

Sets the query of the module.

**Signature:**

```typescript
export declare function setQuery(state: QueryState, query: string): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  state | [QueryState](./x-components.querystate.md) | State of the module. |
|  query | string | The new query to set. |

**Returns:**

void

