1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-26 07:46:59 +01:00
git-touch-android-ios-app/lib/graphql/gh_users.graphql

98 lines
1.7 KiB
GraphQL
Raw Normal View History

2020-01-07 08:07:57 +01:00
query GhUsers(
2019-12-07 16:10:30 +01:00
$login: String!
$repoName: String!
$after: String
$isFollowers: Boolean!
$isFollowing: Boolean!
$isMember: Boolean!
$isStar: Boolean!
$isWatch: Boolean!
) {
2020-01-01 07:20:59 +01:00
user(login: $login) @skip(if: $isMember) {
2019-12-07 16:10:30 +01:00
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
followers(first: 30, after: $after) @include(if: $isFollowers) {
pageInfo {
hasNextPage
endCursor
}
nodes {
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
}
}
following(first: 30, after: $after) @include(if: $isFollowing) {
pageInfo {
hasNextPage
endCursor
}
nodes {
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
}
}
}
organization(login: $login) @include(if: $isMember) {
login
name
avatarUrl
location
2020-01-01 07:20:59 +01:00
membersWithRole(first: 30, after: $after) {
2019-12-07 16:10:30 +01:00
pageInfo {
hasNextPage
endCursor
}
nodes {
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
}
}
}
repository(owner: $login, name: $repoName) {
watchers(first: 30, after: $after) @include(if: $isWatch) {
pageInfo {
hasNextPage
endCursor
}
nodes {
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
}
}
stargazers(first: 30, after: $after) @include(if: $isStar) {
pageInfo {
hasNextPage
endCursor
}
nodes {
login
name
avatarUrl
company
location
createdAt
2019-12-07 16:10:30 +01:00
}
}
}
}