Hello friends, does anyone know how I can get the ...
# ask-community
q
Hello friends, does anyone know how I can get the list of all assets keys from
DbtManifestSelection
?
d
we’re also struggling with this today! /sub
r
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
Awesome. Thanks @rex