Skip to content

Instantly share code, notes, and snippets.

@davepcallan
Created April 25, 2024 15:30
Show Gist options
  • Save davepcallan/29d7e47e02694cd33fef0b9ecce775a9 to your computer and use it in GitHub Desktop.
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
{
rateLimit {
limit
remaining
used
resetAt
}
user(login: "davepcallan") {
name
bio
avatarUrl
email
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