Skip to content

Commit

Permalink
The "saved_query" selector method (#5150)
Browse files Browse the repository at this point in the history
[Preview](https://docs-getdbt-com-git-dbeatty10-patch-1-dbt-labs.vercel.app/reference/node-selection/methods#the-saved_query-method)

## What are you changing in this pull request and why?

The "saved_query" selector method was [added in
v1.7](https://github.com/dbt-labs/dbt-core/blob/1.7.latest/CHANGELOG.md#dbt-core-170---november-02-2023)
by dbt-labs/dbt-core#8594 /
dbt-labs/dbt-core#8798.

## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [x] I have verified all new code examples work as described
  • Loading branch information
mirnawong1 authored Mar 25, 2024
2 parents 3c6267d + 91b89a6 commit 4d1297d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,3 +385,18 @@ dbt list --select "+semantic_model:orders" # list your semantic model named "or
```
</VersionBlock>
### The "saved_query" method
<VersionBlock lastVersion="1.6">
Supported in v1.7 or newer.
</VersionBlock>
<VersionBlock firstVersion="1.7">
The `saved_query` method selects [saved queries](/docs/build/saved-queries).
```bash
dbt list --select "saved_query:*" # list all saved queries
dbt list --select "+saved_query:orders_saved_query" # list your saved query named "orders_saved_query" and all upstream resources
```
</VersionBlock>

0 comments on commit 4d1297d

Please sign in to comment.