Skip to content

Commit

Permalink
Relationship between selected_resources and graph context variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Sep 16, 2023
1 parent 57ccb0d commit ba13ed5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ For a given run it will look like:
["model.my_project.model1", "model.my_project.model2", "snapshot.my_project.my_snapshot"]
```

Each value corresponds to a key in the `nodes` object within the [graph](/reference/dbt-jinja-functions/graph) context variable.

It can be used in macros in a `pre-hook`, `post-hook`, `on-run-start` or `on-run-end`
to evaluate what nodes are selected and trigger different logic whether a particular node
is selected or not.
Expand Down

0 comments on commit ba13ed5

Please sign in to comment.