https://dagster.io/ logo
Title
a

Andrew Parsons

08/23/2021, 3:30 PM
Quick question, and I anticipate a simple answer! How can I define in the
config_schema
a list of one or more Shapes? I have Dagster integrated with a Django application (although I'm really only using the Django ORM). I need to perform a simple Django ORM query using one or more Django ORM filters. I'm thinking:
Shape(
    fields={
        'operator': Selector( ... ), # and vs. or
        'tags': Field(config=list, ...),
        'slice_begin': Field(config=int, ...),
        'slice_end': Field(config=int, ...),
    },
)
But then... can I define a list of Shapes?
j

johann

08/23/2021, 3:33 PM
Yes
a

Andrew Parsons

08/23/2021, 5:06 PM
Thanks!