Skip to content

Top languages card is empty #1910

Answered by rickstaa
fqrtg14 asked this question in Q&A
Jul 31, 2022 · 2 comments · 18 replies
Discussion options

You must be logged in to vote

@fqrtg14 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": "fqrtg14"}

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
8 replies
@rickstaa
Comment options

@fqrtg14
Comment options

@fqrtg14
Comment options

@rickstaa
Comment options

@fqrtg14
Comment options

Answer selected by fqrtg14
Comment options

You must be logged in to vote
10 replies
@rickstaa
Comment options

@emjose
Comment options

@rickstaa
Comment options

@emjose
Comment options

@emjose
Comment options

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

This discussion was converted from issue #1909 on July 31, 2022 09:59.