Merge pull request #204 from SSARCandy/master

fix: fetch top lang in each repository
This commit is contained in:
Anurag Hazra 2020-07-26 22:19:26 +05:30 committed by GitHub
commit 68198d8b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,9 @@ const fetcher = (variables, token) => {
query: `
query userInfo($login: String!) {
user(login: $login) {
repositories(isFork: false, first: 100) {
repositories(isFork: false, first: 100, orderBy: {field: UPDATED_AT, direction: DESC}) {
nodes {
languages(first: 1) {
languages(first: 1, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {