diff options
Diffstat (limited to 'app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql')
-rw-r--r-- | app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql b/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql index e8f2a2cdf7f..c6c2024c840 100644 --- a/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql +++ b/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql @@ -1,4 +1,11 @@ -query getEnvironmentDetails($projectFullPath: ID!, $environmentName: String, $pageSize: Int) { +query getEnvironmentDetails( + $projectFullPath: ID! + $environmentName: String + $first: Int + $last: Int + $after: String + $before: String +) { project(fullPath: $projectFullPath) { id name @@ -6,7 +13,19 @@ query getEnvironmentDetails($projectFullPath: ID!, $environmentName: String, $pa environment(name: $environmentName) { id name - deployments(orderBy: { createdAt: DESC }, first: $pageSize) { + deployments( + orderBy: { createdAt: DESC } + first: $first + last: $last + after: $after + before: $before + ) { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } nodes { id iid |