debian-mirror-gitlab/app/assets/javascripts/boards/graphql/board_labels.query.graphql

26 lines
564 B
GraphQL
Raw Normal View History

2021-01-29 00:20:46 +05:30
#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) {
2022-01-26 12:08:38 +05:30
id
2021-04-17 20:07:23 +05:30
labels(searchTerm: $searchTerm, onlyGroupLabels: true, includeAncestorGroups: true) {
2021-01-29 00:20:46 +05:30
nodes {
...Label
}
}
}
project(fullPath: $fullPath) @include(if: $isProject) {
2022-01-26 12:08:38 +05:30
id
2021-04-17 20:07:23 +05:30
labels(searchTerm: $searchTerm, includeAncestorGroups: true) {
2021-01-29 00:20:46 +05:30
nodes {
...Label
}
}
}
}