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

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

# Type Alias MetabaseQueryObject

```ts
type MetabaseQueryObject =
  | {
  database?: unknown;
  parameters?: unknown;
  query?: unknown;
  type: "query";
}
  | {
  database?: unknown;
  native?: unknown;
  parameters?: unknown;
  type: "native";
}
  | {
  database?: unknown;
  lib/type: "mbql/query";
  parameters?: unknown;
  stages?: unknown;
};
```

Public structural type for ad-hoc SDK queries created by
`useMetabaseQueryObject`.
