debian-mirror-gitlab/app/assets/javascripts/boards/graphql/board_labels.query.graphql
2021-04-17 20:07:23 +05:30

23 lines
550 B
GraphQL

#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) {
labels(searchTerm: $searchTerm, onlyGroupLabels: true, includeAncestorGroups: true) {
nodes {
...Label
}
}
}
project(fullPath: $fullPath) @include(if: $isProject) {
labels(searchTerm: $searchTerm, includeAncestorGroups: true) {
nodes {
...Label
}
}
}
}