gitlab/ee/app/assets/javascripts/iterations/queries/iterations.query.graphql
2021-11-08 04:55:59 +00:00

48 lines
953 B
GraphQL

#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
#import "./iteration_list_item.fragment.graphql"
query workspaceIterations(
$fullPath: ID!
$isGroup: Boolean = true
$state: IterationState!
$beforeCursor: String = ""
$afterCursor: String = ""
$firstPageSize: Int
$lastPageSize: Int
) {
group(fullPath: $fullPath) @include(if: $isGroup) {
id
iterations(
state: $state
before: $beforeCursor
after: $afterCursor
first: $firstPageSize
last: $lastPageSize
) {
nodes {
...IterationListItem
}
pageInfo {
...PageInfo
}
}
}
project(fullPath: $fullPath) @skip(if: $isGroup) {
id
iterations(
state: $state
before: $beforeCursor
after: $afterCursor
first: $firstPageSize
last: $lastPageSize
) {
nodes {
...IterationListItem
}
pageInfo {
...PageInfo
}
}
}
}