improvement(gh): stargazers order by time desc

This commit is contained in:
Rongjian Zhang
2020-04-05 22:02:38 +08:00
parent e62b6a2846
commit b2a7add3ec
2 changed files with 18 additions and 2 deletions

View File

@@ -79,7 +79,11 @@ query GhUsers(
createdAt
}
}
stargazers(first: 30, after: $after) @include(if: $isStar) {
stargazers(
first: 30
after: $after
orderBy: { field: STARRED_AT, direction: DESC }
) @include(if: $isStar) {
pageInfo {
hasNextPage
endCursor