mirror of
https://github.com/git-touch/git-touch
synced 2024-12-18 19:22:54 +01:00
fix: organization members query
This commit is contained in:
parent
fb28038021
commit
3586ee5230
@ -606,7 +606,13 @@ class GithubUsersQuery extends GraphQLQuery<GithubUsers, GithubUsersArguments> {
|
||||
name: NameNode(value: 'login'),
|
||||
value: VariableNode(name: NameNode(value: 'login')))
|
||||
],
|
||||
directives: [],
|
||||
directives: [
|
||||
DirectiveNode(name: NameNode(value: 'skip'), arguments: [
|
||||
ArgumentNode(
|
||||
name: NameNode(value: 'if'),
|
||||
value: VariableNode(name: NameNode(value: 'isMember')))
|
||||
])
|
||||
],
|
||||
selectionSet: SelectionSetNode(selections: [
|
||||
FieldNode(
|
||||
name: NameNode(value: 'login'),
|
||||
@ -866,16 +872,7 @@ class GithubUsersQuery extends GraphQLQuery<GithubUsers, GithubUsersArguments> {
|
||||
name: NameNode(value: 'after'),
|
||||
value: VariableNode(name: NameNode(value: 'after')))
|
||||
],
|
||||
directives: [
|
||||
DirectiveNode(
|
||||
name: NameNode(value: 'include'),
|
||||
arguments: [
|
||||
ArgumentNode(
|
||||
name: NameNode(value: 'if'),
|
||||
value: VariableNode(
|
||||
name: NameNode(value: 'isFollowing')))
|
||||
])
|
||||
],
|
||||
directives: [],
|
||||
selectionSet: SelectionSetNode(selections: [
|
||||
FieldNode(
|
||||
name: NameNode(value: 'pageInfo'),
|
||||
|
@ -8,7 +8,7 @@ query(
|
||||
$isStar: Boolean!
|
||||
$isWatch: Boolean!
|
||||
) {
|
||||
user(login: $login) {
|
||||
user(login: $login) @skip(if: $isMember) {
|
||||
login
|
||||
name
|
||||
avatarUrl
|
||||
@ -49,7 +49,7 @@ query(
|
||||
name
|
||||
avatarUrl
|
||||
location
|
||||
membersWithRole(first: 30, after: $after) @include(if: $isFollowing) {
|
||||
membersWithRole(first: 30, after: $after) {
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
|
Loading…
Reference in New Issue
Block a user