SQL Cursor Pagination

JSON →
library 4.3.0 ·javascript
verified Jun 5, 2026

Library for implementing cursor-based pagination from SQL databases, conforming to the GraphQL Cursor Connections Specification (Relay-compatible). Current stable version is 4.3.0, released with support for Node >=18 and TypeScript types built-in. Key differentiators: generates encrypted opaque cursors, supports forward/backward pagination (first/last, before/after), works with any SQL query builder or raw SQL via provided fragments (where, order by). Unlike offset-based pagination, cursors prevent duplicate or skipped items when data changes between requests.