Hey, how can I get a list of all UI registered flo...
# prefect-ui
l
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:
Copy code
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
Hi @Lucas Cavalcanti Rodrigues would this work for you?
Copy code
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
Thanks, Jenny!
👍 1