https://prefect.io logo
#prefect-ui
Title
# prefect-ui
w

Walter Cavinaw

07/05/2022, 9:21 PM
I am not very familiar with graphql. Can i use it to find flows that contain a certain label in it's run_config?
k

Kevin Kho

07/05/2022, 9:33 PM
Try:
Copy code
query {
  flow(where: {run_config: {_contains: {labels: "test"}}}) {
    run_config
  }
}
w

Walter Cavinaw

07/05/2022, 9:35 PM
thanks kevin your a legend. Does graphl have its own language/keywords or does it mimic javascript somehow?
k

Kevin Kho

07/05/2022, 9:37 PM
I dont know enough Javascript but maybe this is a good place to start. You get used to it pretty quickly
w

Walter Cavinaw

07/05/2022, 9:38 PM
ok thanks!
j

Joshua Greenhalgh

07/05/2022, 10:19 PM
I have found using studio.apollographql.com to construct queries a really nice approach - it has really great introspection and code generation capabilities
It understands the full schema of the endpoint just by passing the endpoint to it
w

Walter Cavinaw

07/05/2022, 10:23 PM
thanks @Joshua Greenhalgh, i will check that out.
3 Views