---
title: "Type Alias QueryData<TRow>"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/QueryData"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Type Alias QueryData<TRow>

```ts
type QueryData<TRow> = {
  columns: DatasetColumn[];
  description?: QueryQuestionResult["description"];
  entityId?: QueryQuestionResult["entityId"] | null;
  id?: QueryQuestionResult["id"] | null;
  name?: QueryQuestionResult["name"] | null;
  rawRows: RowValues[];
  rowCount: number | null;
  rows: TRow[];
  runningTime: number | null;
};
```

## Not Exported

DatasetColumn

## Not Exported

RowValues

## Type Parameters

| Type Parameter |
| :------------- |
| `TRow`         |

## Properties

| Property                                | Type                                                                               |
| :-------------------------------------- | :--------------------------------------------------------------------------------- |
| `columns`          | `DatasetColumn`[]                                                                  |
| `description?` | [`QueryQuestionResult`](https://www.metabase.com/docs/latest/embedding/sdk/api/QueryQuestionResult.md)\[`"description"`\]           |
| `entityId?`       | \| [`QueryQuestionResult`](https://www.metabase.com/docs/latest/embedding/sdk/api/QueryQuestionResult.md)\[`"entityId"`\] \| `null` |
| `id?`                   | [`QueryQuestionResult`](https://www.metabase.com/docs/latest/embedding/sdk/api/QueryQuestionResult.md)\[`"id"`\] \| `null`          |
| `name?`               | \| [`QueryQuestionResult`](https://www.metabase.com/docs/latest/embedding/sdk/api/QueryQuestionResult.md)\[`"name"`\] \| `null`     |
| `rawRows`          | `RowValues`[]                                                                      |
| `rowCount`        | `number` \| `null`                                                                 |
| `rows`                | `TRow`[]                                                                           |
| `runningTime`  | `number` \| `null`                                                                 |
