How can I add asset_key_prefix when using `AssetsD...
# ask-community
s
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
exactly. I had actually just filed this issue yesterday to make this easier: https://github.com/dagster-io/dagster/issues/8516