Created
December 19, 2020 20:54
-
-
Save paullewallencom/93973fc0750d7e42dec3fdb1812475ac to your computer and use it in GitHub Desktop.
GitHub GraphQL API: Fetch Repository Count for Current User
This file contains 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
<!-- 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