When selecting assets, say I have this which selec...
# ask-community
m
When selecting assets, say I have this which selects 50 assets downstream
asset_bar*
But 10 of those assets are part of the group call
group_foo
. Is there anyway to select all assets downstream of
asset_bar
excluding assets part of
group_foo
(so 40 assets should be selected in total)?
🤖 1
dagster bot responded by community 1
g
AssetSelection is supposed to allow operators between asset selections. specifically I think you should be able to
AssetSelection.keys('asset_bar').downstream() - AssetSelection.groups('group_foo')
s
Giovanni is correct, you can use the
-
operator between asset selections!