Hello, what is the correct syntax for this filter?...
# ask-community
j
Hello, what is the correct syntax for this filter? flow_run_filter = FlowRunFilter(state = FlowRunFilterState(type = ['COMPLETED'])) I am messing up somewhere in specifying the state type
1
Nevermind. It was flow_run_filter = FlowRunFilter(state = FlowRunFilterState(type = FlowRunFilterStateType(any_= ['COMPLETED']))) for reference
z
👍 you can also generally provide this as a dictionary and we’ll parse it so
{"state": {"type": {"any_": ["COMPLETED"]}}
👍 1