hey, someone can help me with a query in graphql api?
I wan't to collect all created flows in one query, but I wan't ONLY the LASTEST version of each,
how can I do so?
discourse 1
k
Kevin Kho
04/06/2022, 6:14 PM
Something like this (archived = False)
Copy code
query {
flow(where: {name: {_eq: "schedule_test"}, archived: {_eq: false}}) {
name
project{
name
}
version
archived
}
}
🙌 1
e
Ewerton Henrique Marschalk
04/06/2022, 6:36 PM
thanks, archved: false did the trick,
Copy code
{
flow(where: {archived: { _eq: false}}) {
id
name
version
flow_runs(where: {state: {_neq: "Scheduled"}} order_by: { start_time: desc }, limit: 1) {
id
state
start_time
end_time
}
}
}
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.