summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issues_list/queries/search_milestones.query.graphql
blob: e7eb08104a6be0f1e4c1288d4918752efac0aebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#import "./milestone.fragment.graphql"

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