Skip to content

Instantly share code, notes, and snippets.

@nrchandan
Last active September 10, 2020 12:17
Show Gist options
  • Save nrchandan/446316c97388eec12520fcb39c7991d2 to your computer and use it in GitHub Desktop.
Save nrchandan/446316c97388eec12520fcb39c7991d2 to your computer and use it in GitHub Desktop.
# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query {
viewer {
name
login
contributionsCollection(from: "2020-09-01T00:00:00.000Z") {
totalCommitContributions
restrictedContributionsCount
}
repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) {
totalCount
}
pullRequests(first: 1) {
totalCount
}
issues(first: 1) {
totalCount
}
followers {
totalCount
}
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
totalCount
nodes {
stargazers {
totalCount
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment