Skip to content

Instantly share code, notes, and snippets.

@sergiogarciadev
Last active October 20, 2016 16:43
Show Gist options
  • Select an option

  • Save sergiogarciadev/531ff1127434938644889bddb286e7d4 to your computer and use it in GitHub Desktop.

Select an option

Save sergiogarciadev/531ff1127434938644889bddb286e7d4 to your computer and use it in GitHub Desktop.
GitHub GraphQL
query UserRepositories($user: String!, $after: String!) {
repositoryOwner(login: $user) {
repositories(first: 3, after: $after) {
edges {
cursor
node {
id
name
description
hasWikiEnabled
issues(states: OPEN) {
totalCount
}
pullRequests(states: OPEN) {
totalCount
}
stargazers {
totalCount
}
forks {
totalCount
}
}
}
}
}
}
{
"user": "LawfulHacker",
"after": "MzA4NTc3Ng=="
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment