Update plugins/catalog-backend-module-gitlab/src/lib/client.ts

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: sbarrypoppulo <101636916+sbarrypoppulo@users.noreply.github.com>
This commit is contained in:
sbarrypoppulo
2023-08-15 15:10:47 +01:00
committed by GitHub
parent 5a3842761c
commit ecf970e4fe
@@ -187,24 +187,24 @@ export class GitLabClient {
body: JSON.stringify({
variables: { group: groupPath, endCursor },
query: `query listSaasGroups($group: ID!, $endCursor: String) {
group(fullPath: $group) {
descendantGroups(first: 100, after: $endCursor){
nodes{
id
name
description
fullPath
parent{
id
}
}
pageInfo {
endCursor
hasNextPage
group(fullPath: $group) {
descendantGroups(first: 100, after: $endCursor) {
nodes {
id
name
description
fullPath
parent {
id
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}`,
}
}`,
}),
},
).then(r => r.json());