Get latest flow run from flow_id using GraphQL

Just an example query to get latest flow run from flow_id using GraphQL

query {
  flow (where: {id: {_eq: "2c5a1658-8b21-4d4e-924a-e9e4f5e56786"}}) {
    id
    name
    flow_runs (order_by: {start_time:desc},
               limit:1){
      id
      name
      start_time
    }
  }
}
1 Like