summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issues_list/queries/search_users.query.graphql
blob: 92517ad35d0cabb55e1384db753daf8c3a856116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#import "./user.fragment.graphql"

query searchUsers($fullPath: ID!, $search: String, $isProject: Boolean = false) {
  group(fullPath: $fullPath) @skip(if: $isProject) {
    id
    groupMembers(search: $search) {
      nodes {
        id
        user {
          ...User
        }
      }
    }
  }
  project(fullPath: $fullPath) @include(if: $isProject) {
    id
    projectMembers(search: $search) {
      nodes {
        id
        user {
          ...User
        }
      }
    }
  }
}