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

search_milestones.query.graphql « queries « issues_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c6c50e9dc23210c9a9b07c06ad671d9cf5fab87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import "./milestone.fragment.graphql"

query searchMilestones($fullPath: ID!, $search: String, $isProject: Boolean = false) {
  group(fullPath: $fullPath) @skip(if: $isProject) {
    milestones(searchTitle: $search, includeAncestors: true, includeDescendants: true) {
      nodes {
        ...Milestone
      }
    }
  }
  project(fullPath: $fullPath) @include(if: $isProject) {
    milestones(searchTitle: $search, includeAncestors: true) {
      nodes {
        ...Milestone
      }
    }
  }
}