summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/graphql_shared/queries/users_search.query.graphql
blob: c05b4a5950c2e03dd67c036c6e4a5eecfed63950 (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
27
28
#import "../fragments/user.fragment.graphql"
#import "~/graphql_shared/fragments/user_availability.fragment.graphql"

query projectUsersSearch($search: String!, $fullPath: ID!, $after: String, $first: Int) {
  workspace: project(fullPath: $fullPath) {
    id
    users: projectMembers(
      search: $search
      relations: [DIRECT, INHERITED, INVITED_GROUPS]
      first: $first
      after: $after
      sort: USER_FULL_NAME_ASC
    ) {
      pageInfo {
        hasNextPage
        endCursor
        startCursor
      }
      nodes {
        id
        user {
          ...User
          ...UserAvailability
        }
      }
    }
  }
}