https://dagster.io/ logo
#ask-community
Title
# ask-community
q

Qwame

02/14/2023, 2:42 AM
Hello friends, does anyone know how I can get the list of all assets keys from
DbtManifestSelection
?
d

Dane Linssen

02/14/2023, 2:16 PM
we’re also struggling with this today! /sub
r

rex

02/14/2023, 3:02 PM
You can resolve the selection on the asset graph to retrieve the keys: we can add this as an example. Here’s what I mean:
Copy code
dbt_assets = load_assets_from_dbt_manifest(manifest_json=manifest_json)
    asset_graph = AssetGraph.from_assets(dbt_assets)
    actual_keys = DbtManifestAssetSelection(
        manifest_json=manifest_json, select=select or "*", exclude=exclude or ""
    ).resolve_inner(asset_graph)
q

Qwame

02/15/2023, 12:14 AM
Awesome. Thanks @rex