Created
September 18, 2019 06:41
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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