Can I query repos (showing their star counts) from a code search with the GraphQL API?


#1

From the doc I don’t see any way to search for search code. Am I wrong?

H


List repositories filtered by owner and repo name
#2

u have access to all my creds as far as im concerned just pls ruturn them safely they mean the world… a old school friend made my first 4 me js[pls b carful](http://)


#3

Hi @jsappme,

Would a query like this be what you’re looking for

query {
  search(query: "this should never happen", type: REPOSITORY, last:30) {
    edges {
      node {
        ... on Repository {
          name
          owner {
            login
          }
          stargazers {
            totalCount
          }
        }
      }
    }
  }
}

The relevant piece of documentation is the first connection listed here.