## getQueryString() function [​](/content/docs/sdk/core.getquerystring#getquerystring-function/index.html)

Converts the given `query` to a string.

**Signature:**

```typescript
export declare function getQueryString(query: QueryTypes): string;
```

## Parameters [​](/content/docs/sdk/core.getquerystring#parameters/index.html)

| Parameter | Type | Description |
| --- | --- | --- |
| query | [QueryTypes](/content/docs/sdk/core.querytypes) | The query to convert. The type can be any member of `QueryTypes`. |

**Returns:**

string

The query as a string.

- [getQueryString() function](/content/docs/sdk/core.getquerystring#getquerystring-function/index.html)
- [Parameters](/content/docs/sdk/core.getquerystring#parameters/index.html)
