Welcome to mirror list, hosted at ThFree Co, Russian Federation.

board_labels.query.graphql « graphql « boards « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 525a4863379d4b774778859a963647c54a97efdc (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
#import "~/graphql_shared/fragments/label.fragment.graphql"

query BoardLabels(
  $fullPath: ID!
  $searchTerm: String
  $isGroup: Boolean = false
  $isProject: Boolean = false
) {
  group(fullPath: $fullPath) @include(if: $isGroup) {
    id
    labels(searchTerm: $searchTerm, onlyGroupLabels: true, includeAncestorGroups: true) {
      nodes {
        ...Label
      }
    }
  }
  project(fullPath: $fullPath) @include(if: $isProject) {
    id
    labels(searchTerm: $searchTerm, includeAncestorGroups: true) {
      nodes {
        ...Label
      }
    }
  }
}