Is there an alternative/direct way to get all flow...
# ask-community
j
Is there an alternative/direct way to get all flow runs via flow id besides:
Copy code
runs = FlowRunView._query_for_flow_run(where={"flow_id": {"_eq": id}})
k
You can use the Prefect Client and call
client,graphql()
with:
Copy code
query {
	flow (where: {id: {_eq: "64c1984a-615f-4d26-b3ea-dfafceb14f6e"}}){
    id
    flow_runs{
      name
      id
    }
  }
}