Skip to content

Instantly share code, notes, and snippets.

@nogweii
Created September 18, 2019 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nogweii/56c0392cbf12bf82d71177d89903379c to your computer and use it in GitHub Desktop.
Save nogweii/56c0392cbf12bf82d71177d89903379c to your computer and use it in GitHub Desktop.
GraphQL query for Github to get N recently starred repos, along with their langauges/topics
query RecentlyStarredRepos($numRepos: Int, $cursor: String) {
viewer {
starredRepositories(last: $numRepos, before: $cursor) {
edges {
starredAt
cursor
node {
id
name
description
url
languages(first: 5) {
nodes {
name
}
}
repositoryTopics(first: 10) {
nodes {
topic {
name
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment