Hey yall - quick noob question If I have a "graph...
# ask-community
z
Hey yall - quick noob question If I have a "graph" back asset, such as the one created by the DBT integration, is there a way to declaratively set an upstream dependency to this graph? I essentially want to do something like:
some_conditional_op
>
dbt_graph
Do I need to just set
some_conditional_op
as an explicit upstream in each assetdefinition I create as part of the DBT load assets function?
y
you will need to create an asset from the graph, say
my_asset
and then you’ll need to configure
my_asset
as a source in your downstream dbt project such as: https://docs.dagster.io/integrations/dbt/using-dbt-with-dagster/part-one#step-3-configure-dbt-model-data-sources
z
thanks @yuhan! Is there an easier way to generalize and just say "I want this op to run before ALL other ops" In airflow this can be achieved by doing something like
op_1 > [op_2, op_3..., op_x]