Writing a GraphQL query utilizing metadata

I’m trying to query build status by test channel/agent. Think I’m most of the way there but am unsure of how to filter by metadata tag. It looks like the syntax should be something like this, but this isn’t right:

{
pipeline(slug: “foobar/continuous-dfu”) {
builds(state: PASSED, metaData: [“queue=mobile”]) {
count
}
}
}

Any help appreciated.

Thanks!

Hey @johnf, good question!

You are almost there, something like this should work:

query {
  pipeline(slug: "org/pipeline-slug") {
    builds(state: PASSED, metaData: "queue=default") {
      count
    }
  }
}