Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql')
-rw-r--r--app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql18
1 files changed, 17 insertions, 1 deletions
diff --git a/app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql b/app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql
index 29a26be0344..8fe9fbc5e24 100644
--- a/app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql
+++ b/app/assets/javascripts/ci/pipeline_schedules/graphql/queries/get_pipeline_schedules.query.graphql
@@ -1,7 +1,13 @@
+#import "~/graphql_shared/fragments/page_info.fragment.graphql"
+
query getPipelineSchedulesQuery(
$projectPath: ID!
$status: PipelineScheduleStatus
$ids: [ID!] = null
+ $first: Int
+ $last: Int
+ $prevPageCursor: String = ""
+ $nextPageCursor: String = ""
) {
currentUser {
id
@@ -9,7 +15,14 @@ query getPipelineSchedulesQuery(
}
project(fullPath: $projectPath) {
id
- pipelineSchedules(status: $status, ids: $ids) {
+ pipelineSchedules(
+ status: $status
+ ids: $ids
+ first: $first
+ last: $last
+ after: $nextPageCursor
+ before: $prevPageCursor
+ ) {
count
nodes {
id
@@ -56,6 +69,9 @@ query getPipelineSchedulesQuery(
adminPipelineSchedule
}
}
+ pageInfo {
+ ...PageInfo
+ }
}
}
}