diff options
| author | Max Audron <audron@cocaine.farm> | 2022-07-06 12:19:43 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2022-07-06 12:29:58 +0200 |
| commit | eea9a69b48bcd20a9cd14b7acc1ef6c1f2357ed7 (patch) | |
| tree | f1e13ff44e4ad4e428e9a5d237c69a45f05bd3c2 /graphql | |
| parent | add gitlab upload command (diff) | |
paginate results from gitlab api
Diffstat (limited to 'graphql')
| -rw-r--r-- | graphql/projects_query.graphql | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/graphql/projects_query.graphql b/graphql/projects_query.graphql index dee251a..ae12957 100644 --- a/graphql/projects_query.graphql +++ b/graphql/projects_query.graphql @@ -1,5 +1,5 @@ -query Projects($scope: String!) { - projects(membership: true, searchNamespaces: true, search: $scope) { +query Projects($scope: String!, $after: String!) { + projects(membership: true, searchNamespaces: true, search: $scope, after: $after) { nodes { id name @@ -7,5 +7,10 @@ query Projects($scope: String!) { sshUrlToRepo httpUrlToRepo } + + pageInfo { + endCursor + hasNextPage + } } } |
