Skip to content

Instantly share code, notes, and snippets.

@jtwebman
Created December 4, 2019 17:02
Show Gist options
  • Save jtwebman/1c71f40a6e67d4b91c611b8ce005663c to your computer and use it in GitHub Desktop.
Save jtwebman/1c71f40a6e67d4b91c611b8ce005663c to your computer and use it in GitHub Desktop.
Github API V4 GraphQL Query For Users Repo Language Count
{
user(login: "jtwebman") {
repositories(isFork: false, privacy: PUBLIC, ownerAffiliations: [OWNER], first: 100, orderBy: {field: NAME, direction: ASC}) {
totalCount
nodes {
name
owner {
login
}
languages(first: 100, orderBy: {field: SIZE, direction: DESC}) {
totalCount
edges {
size
node {
name
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment