Skip to content

GraphQL: How can I fetch the list of repositories using a topic? #24805

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

You must be logged in to vote

This expression did it for me: 

{
  search(first: 100, type: REPOSITORY, query: "topic:golang org:google") {
    pageInfo {
      hasNextPage
      endCursor
      }
    repos: edges {
      repo: node {
        ... on Repository {
          name
          url
          id
        }
      }
    }
  }
}

Replies: 1 comment

Comment options

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