I am not very familiar with graphql. Can i use it ...
# prefect-ui
w
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
Try:
Copy code
query {
  flow(where: {run_config: {_contains: {labels: "test"}}}) {
    run_config
  }
}
w
thanks kevin your a legend. Does graphl have its own language/keywords or does it mimic javascript somehow?
k
I dont know enough Javascript but maybe this is a good place to start. You get used to it pretty quickly
w
ok thanks!
j
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
thanks @Joshua Greenhalgh, i will check that out.