git-touch-android-ios-app/lib/graphql/gh_repos.graphql

71 lines
1.2 KiB
GraphQL
Raw Normal View History

2020-01-07 08:07:57 +01:00
query GhRepos($owner: String!, $after: String, $isStar: Boolean!) {
2020-02-07 08:43:35 +01:00
user(login: $owner) {
2019-12-07 15:25:37 +01:00
__typename
login
avatarUrl
2020-02-07 08:43:35 +01:00
repositories(
first: 30
after: $after
orderBy: { field: UPDATED_AT, direction: DESC }
) @skip(if: $isStar) {
totalCount # TODO:
pageInfo {
hasNextPage
endCursor
}
nodes {
owner {
login
avatarUrl
2019-12-07 15:25:37 +01:00
}
2020-02-07 08:43:35 +01:00
name
description
isPrivate
isFork
updatedAt
stargazers {
totalCount
2019-12-07 15:25:37 +01:00
}
2020-02-07 08:43:35 +01:00
forks {
totalCount
2019-12-07 15:25:37 +01:00
}
2020-02-07 08:43:35 +01:00
primaryLanguage {
color
2019-12-07 15:25:37 +01:00
name
}
}
}
2020-02-07 08:43:35 +01:00
starredRepositories(
first: 30
after: $after
orderBy: { field: STARRED_AT, direction: DESC }
) @include(if: $isStar) {
pageInfo {
hasNextPage
endCursor
}
nodes {
owner {
login
avatarUrl
2019-12-07 15:25:37 +01:00
}
2020-02-07 08:43:35 +01:00
name
description
isPrivate
isFork
updatedAt
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
2019-12-07 15:25:37 +01:00
}
}
}
}
}