+++
# -----------------------------------------------------------------------
# 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
Signature
```typescript
export declare function toDataQueryResponse(res: any): DataQueryResponse;
```
Import
```typescript
import { toDataQueryResponse } from '@grafana/runtime';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| res | any
| |
Returns:
`DataQueryResponse`