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

Son Giang

06/21/2022, 7:56 AM
How can I add asset_key_prefix when using
AssetsDefinition.from_graph()
?
🤖 1
Or is there anyway to define AssetKey for an graph-backed asset?
Ok got it, I can use this
Copy code
AssetsDefinition.from_graph(graph, keys_by_output_name={"result": AssetKey(["key_prefix", "key"])
s

sandy

06/21/2022, 4:32 PM
exactly. I had actually just filed this issue yesterday to make this easier: https://github.com/dagster-io/dagster/issues/8516
52 Views