Skip to content

Commit

Permalink
expose vulnerability pagination query on client side (guacsec#1925)
Browse files Browse the repository at this point in the history
Signed-off-by: pxp928 <[email protected]>
  • Loading branch information
pxp928 committed May 22, 2024
1 parent a35a679 commit 7ee25d1
Show file tree
Hide file tree
Showing 3 changed files with 286 additions and 1 deletion.
269 changes: 269 additions & 0 deletions pkg/assembler/clients/generated/operations.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/assembler/clients/operations/hasSBOM.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ query HasSBOMs($filter: HasSBOMSpec!) {
}
}


query HasSBOMList($filter: HasSBOMSpec!, $after: ID, $first: Int) {
HasSBOMList(hasSBOMSpec: $filter, after: $after, first: $first) {
totalCount
Expand Down
17 changes: 17 additions & 0 deletions pkg/assembler/clients/operations/vulnerability.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ query Vulnerabilities($filter: VulnerabilitySpec!) {
...AllVulnerabilityTree
}
}

query VulnerabilityList($filter: VulnerabilitySpec!, $after: ID, $first: Int) {
vulnerabilityList(vulnSpec: $filter, after: $after, first: $first) {
totalCount
edges {
cursor
node {
...AllVulnerabilityTree
}
}
pageInfo {
startCursor
endCursor
hasNextPage
}
}
}

0 comments on commit 7ee25d1

Please sign in to comment.