Skip to content

Instantly share code, notes, and snippets.

@paullewallencom
Created December 19, 2020 20:54
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 paullewallencom/93973fc0750d7e42dec3fdb1812475ac to your computer and use it in GitHub Desktop.
Save paullewallencom/93973fc0750d7e42dec3fdb1812475ac to your computer and use it in GitHub Desktop.
GitHub GraphQL API: Fetch Repository Count for Current User
<!-- https://docs.github.com/en/free-pro-team@latest/graphql/overview/explorer -->
query {
viewer {
repositories(isFork: false) {
totalCount
}
}
}
<!-- RESULTS -->
<!-- { -->
<!-- "data": { -->
<!-- "viewer": { -->
<!-- "repositories": { -->
<!-- "totalCount": 4020 -->
<!-- } -->
<!-- } -->
<!-- } -->
<!-- } -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment