Skip to main content

Packages object schema

dbt packages are libraries with models, macros, and other resources that tackle a specific problem area utilized by dbt projects. You can query project packages through the Discovery API.

The Example query illustrates a few fields you can query with the packages object. Refer to Fields to view the entire schema, which provides all possible fields you can query.

Arguments

When querying for packages, you can use the following arguments:

Fetching data...

Example query

You can specify the environmentId and "model" as the resource to see all dbt packages in this environment that contain model resources:

query {
environment(id: 834) {
applied {
packages(resource: "model")
}
}
}

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0