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