+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toDataQueryResponse"
keywords = ["grafana","documentation","sdk","@grafana/runtime"]
type = "docs"
+++

## toDataQueryResponse() function

### toDataQueryResponse() function

Parse the results from \`<!-- -->/api/ds/query

<b>Signature</b>

```typescript
export declare function toDataQueryResponse(res: any): DataQueryResponse;
```
<b>Import</b>

```typescript
import { toDataQueryResponse } from '@grafana/runtime';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  res | <code>any</code> |  |

<b>Returns:</b>

`DataQueryResponse`

