https://prefect.io logo
Title
l

Lucas Cavalcanti Rodrigues

09/02/2022, 7:21 PM
Hey, how can I get a list of all UI registered flow group ids using graphQL? I know I can get the flow ID querying for name using:
gql(
    '''
        query LatestFlowByName($name: String) {
          flow(
            where: {name: {_eq: $name}},
            order_by: {version: desc},
            limit: 1,
          )
          {
            id
          }
        }
    ''',
)
But how can I have all flow ids regardless of the name?
1
j

Jenny

09/02/2022, 7:27 PM
Hi @Lucas Cavalcanti Rodrigues would this work for you?
query {
  flow_group {
    id
  }
}
You can always check what queries are available in the documentation explorer in the interactive api in the ui.
🙌 1
l

Lucas Cavalcanti Rodrigues

09/09/2022, 9:12 PM
Thanks, Jenny!
👍 1