Skip to content

Instantly share code, notes, and snippets.

@mcleo-d
Last active June 28, 2022 15:22
Show Gist options
  • Save mcleo-d/fd7b4eec543a0226e1bb86ebb1cfd616 to your computer and use it in GitHub Desktop.
Save mcleo-d/fd7b4eec543a0226e1bb86ebb1cfd616 to your computer and use it in GitHub Desktop.
Top 100 repos in a named GitHub organisation, including first page of STARGAZERS, in descending order
query($github_org:String!) {
organization(login: $github_org) {
repositories(orderBy: {field: STARGAZERS, direction: DESC}, first: 100) {
pageInfo {
startCursor
hasNextPage
endCursor
}
nodes {
name
stargazers(orderBy: {field: STARRED_AT, direction: DESC}, first: 100) {
pageInfo {
hasNextPage
endCursor
}
edges {
starredAt
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment