mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 12:13:31 +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'),
|
name: NameNode(value: 'login'),
|
||||||
value: VariableNode(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: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
FieldNode(
|
FieldNode(
|
||||||
name: NameNode(value: 'login'),
|
name: NameNode(value: 'login'),
|
||||||
@ -866,16 +872,7 @@ class GithubUsersQuery extends GraphQLQuery<GithubUsers, GithubUsersArguments> {
|
|||||||
name: NameNode(value: 'after'),
|
name: NameNode(value: 'after'),
|
||||||
value: VariableNode(name: NameNode(value: 'after')))
|
value: VariableNode(name: NameNode(value: 'after')))
|
||||||
],
|
],
|
||||||
directives: [
|
directives: [],
|
||||||
DirectiveNode(
|
|
||||||
name: NameNode(value: 'include'),
|
|
||||||
arguments: [
|
|
||||||
ArgumentNode(
|
|
||||||
name: NameNode(value: 'if'),
|
|
||||||
value: VariableNode(
|
|
||||||
name: NameNode(value: 'isFollowing')))
|
|
||||||
])
|
|
||||||
],
|
|
||||||
selectionSet: SelectionSetNode(selections: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
FieldNode(
|
FieldNode(
|
||||||
name: NameNode(value: 'pageInfo'),
|
name: NameNode(value: 'pageInfo'),
|
||||||
|
@ -8,7 +8,7 @@ query(
|
|||||||
$isStar: Boolean!
|
$isStar: Boolean!
|
||||||
$isWatch: Boolean!
|
$isWatch: Boolean!
|
||||||
) {
|
) {
|
||||||
user(login: $login) {
|
user(login: $login) @skip(if: $isMember) {
|
||||||
login
|
login
|
||||||
name
|
name
|
||||||
avatarUrl
|
avatarUrl
|
||||||
@ -49,7 +49,7 @@ query(
|
|||||||
name
|
name
|
||||||
avatarUrl
|
avatarUrl
|
||||||
location
|
location
|
||||||
membersWithRole(first: 30, after: $after) @include(if: $isFollowing) {
|
membersWithRole(first: 30, after: $after) {
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
endCursor
|
endCursor
|
||||||
|
Loading…
Reference in New Issue
Block a user