<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@workgrid/client](./client.md) &gt; [Client](./client.client.md) &gt; [query](./client.client.query.md)

## Client.query() method

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
> 

Invoke a query

<b>Signature:</b>

```typescript
query<K extends keyof Queries, Q extends Query = Queries[K]>(queryKey: QueryKey<K, Q>, options?: QueryOptions<Q['TQueryFnData'], Q['TError'], Q['TData']>): Promise<Q['TData']>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  queryKey | QueryKey&lt;K, Q&gt; | The query key (must be pre-defined) |
|  options | QueryOptions&lt;Q\['TQueryFnData'\], Q\['TError'\], Q\['TData'\]&gt; | Any additional query options |

<b>Returns:</b>

Promise&lt;Q\['TData'\]&gt;

The query result

