hi I have asset defined from graph and wanted to u...
# ask-community
j
hi I have asset defined from graph and wanted to use:
Copy code
from dagster import asset, AssetIn

@asset(ins={"stuff": AssetIn(metadata={"allow_missing_partitions": True})})
def use_stuff(context, stuff):
  stuff.keys()
but can't find place to use it in
AssetsDefinition.from_graph
function. Anyone have similar problem. Is it even possible for asset from graph?
What I found is that I can define metadata in op definition and it works
c
Do you mean you want to define a dependency to / from
use_stuff
from the graph-backed asset?
If so, check out the `keys_by_input_name`/`keys_by_output_name` parameters
j
I wanted to pass {"allow_missing_partitions": True} metadata to input context to be used by io manager in
keys_by_input_name
I can only specify AssetKey not AssetIn where I can pass metadata