git-touch-android-ios-app/packages/gql_github/lib/repos.graphql

58 lines
865 B
GraphQL
Raw Normal View History

2022-09-30 22:50:47 +02:00
fragment RepoParts on Repository {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
2022-09-30 21:49:56 +02:00
updatedAt
}
2022-09-30 22:50:47 +02:00
2022-09-30 21:49:56 +02:00
query Repos($login: String!, $after: String) {
repositoryOwner(login: $login) {
repositories(
first: 30
after: $after
orderBy: { field: UPDATED_AT, direction: DESC }
) {
pageInfo {
2022-09-30 22:50:47 +02:00
hasNextPage
endCursor
2022-09-30 21:49:56 +02:00
}
nodes {
2022-09-30 22:50:47 +02:00
...RepoParts
2022-09-30 21:49:56 +02:00
}
}
}
}
2022-09-30 22:50:47 +02:00
2022-09-30 21:49:56 +02:00
query Stars($login: String!, $after: String) {
user(login: $login) {
starredRepositories(
first: 30
after: $after
orderBy: { field: STARRED_AT, direction: DESC }
) {
pageInfo {
2022-09-30 22:50:47 +02:00
hasNextPage
endCursor
2022-09-30 21:49:56 +02:00
}
nodes {
2022-09-30 22:50:47 +02:00
...RepoParts
2022-09-30 21:49:56 +02:00
}
}
}
}