Skip to content

fix(vulnerability): pagination cursor #771

Open
@MR2011

Description

@MR2011

Task Description

All pages have the same cursor in the after field.

Query:

query GetVulnerabilities($filter: VulnerabilityFilter, $first: Int, $after: String) {
  Vulnerabilities(filter: $filter, first: $first, after: $after) {
    edges {
      node {
        severity
        name
        sourceUrl
        earliestTargetRemediationDate
        description
        services {
          totalCount
          edges {
            node {
              ccrn
            }
          }
        }
      }
    }
    totalCount
    pageInfo {
      pageNumber
      pages {
        after
        pageNumber
      }
    }
  }
}

Variables:

{
  "first": 20,
  "after": "W3siTmFtZSI6MTQsIlZhbHVlIjo1LCJPcmRlciI6MX0seyJOYW1lIjoxMywiVmFsdWUiOjY4NjM5OCwiT3JkZXIiOjB9XQo=",
  "filter": {}
}

All pages have the W3siTmFtZSI6MTQsIlZhbHVlIjo1LCJPcmRlciI6MX0seyJOYW1lIjoxMywiVmFsdWUiOjY4NjM5OCwiT3JkZXIiOjB9XQo= cursor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions