<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SemanticQueriesMutations](./x-components.semanticqueriesmutations.md) &gt; [setTotalResults](./x-components.semanticqueriesmutations.settotalresults.md)

## SemanticQueriesMutations.setTotalResults() method

Sets the [SemanticQueriesState.totalResults](./x-components.semanticqueriesstate.totalresults.md) property.

**Signature:**

```typescript
setTotalResults(totalResults: number): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  totalResults | number |  |

**Returns:**

void

