Skip to content

Top languages card is empty #1937

Answered by rickstaa
2huiju asked this question in Q&A
Aug 10, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@2huiju Thanks for your issue. I checked your account, and it looks like the results shown on the card are correct. You can see this in action by using the following query in the graphql explorer:

query userInfo($login: String!) {
  user(login: $login) {
    # fetch only owner repos & not forks
    repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
      nodes {
        name
        languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
          edges {
            size
            node {
              color
              name
            }
          }
        }
      }
    }
  }
}

You can then use the following in the query variables field.

{"login": "2huiju"}

T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rickstaa
Comment options

Answer selected by rickstaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1936 on August 10, 2022 12:21.