Skip to content

Empty top languages card #1789

Answered by rickstaa
a-menshchikov asked this question in Q&A
Mar 10, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@a-menshchikov Thanks for your issue. I checked your problem and it seems that something goes wrong while trying to fetch language data for your username using the GraphQL API. 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…

Replies: 3 comments 2 replies

Comment options

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

@a-menshchikov
Comment options

Answer selected by rickstaa
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested.
2 participants
Converted from issue

This discussion was converted from issue #1640 on May 27, 2022 11:30.