Created
April 25, 2024 15:30
-
-
Save davepcallan/29d7e47e02694cd33fef0b9ecce775a9 to your computer and use it in GitHub Desktop.
Example query of how to get user information from the GitHub graphql API
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
{ | |
rateLimit { | |
limit | |
remaining | |
used | |
resetAt | |
} | |
user(login: "davepcallan") { | |
name | |
bio | |
avatarUrl | |
twitterUsername | |
url | |
socialAccounts(first : 10) | |
{ | |
nodes { | |
url | |
displayName | |
} | |
} | |
followers { | |
totalCount | |
} | |
following { | |
totalCount | |
} | |
starredRepositories { | |
totalCount | |
} | |
repositories(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) { | |
nodes { | |
name | |
description | |
url | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment