Skip to content

Query labels by exact names #24555

Answered by ENikS
ENikS asked this question in API and Webhooks
Discussion options

You must be logged in to vote

After spending coulple of days looking for an answer I stumbled upon it by accident. Looking at the url of the search UI gave me an idea:
https://github.com/graphql/graphiql/labels?q=%22plugin+proposal%22+

So the correct query would be like this:

{
  repository(name: "graphiql", owner: "graphql") {
    labels(query: "\"plugin+proposal\"+", first: 10) {
      nodes {
        name
        id
      }
    }
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment