Skip to main content

Pagination

Description

The GraphQL API returned a substantial amount of data. A query pagination might be missing.

Remediation

Implement pagination on the specified queries.

Configuration

CheckId: complexity/pagination

Options

  • threshold : Maximum number of nodes returned before raising an alert in the fast check.

Examples

Ignoring this check

{
"checks": {
"complexity/pagination": {
"skip": true
}
}
}

Check with all default options

{
"checks": {
"complexity/pagination": {
"options": {
"threshold": 25
}
}
}
}

Score

  • Escape Severity: LOW
  • OWASP: A08:2023
  • PCI DSS: 6.5.8
  • CWE
    • 284
    • 668
  • WASC: 22

References

https://graphql.org/learn/pagination/