Skip to main content

Seeds object schema

Seeds are CSV files in your dbt project that dbt can load into your data warehouse. You can query seeds through the Discovery API.

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

Arguments

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

Fetching data...

Example query

You can specify the environmentId, filter by the database, and limit to the first 100 to show information about the first 100 seed files in the analytics database, including their metadata and file locations:

query ($environmentId: BigInt!, $first: Int!, $filter: GenericMaterializedFilter) {
environment(id: $environmentId) {
applied {
seeds(
first: 100,
filter: {
database: "analytics"
}
) {
edges {
node {
description
name
filePath
projectId
fqn
tags
uniqueId
resourceType
}
}
}
}
}
}

Fields

When querying for seeds, you can use the following fields:

Fetching data...

Key fields from nodes

Fetching data...

Was this page helpful?

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

0