24 lines
469 B
GraphQL
24 lines
469 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) {
|
||
|
nodes {
|
||
|
...Label
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
project(fullPath: $fullPath) @include(if: $isProject) {
|
||
|
labels(searchTerm: $searchTerm) {
|
||
|
nodes {
|
||
|
...Label
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|