graphql-directive-pagination

JSON →
library 1.0.15 ·javascript maintenance
verified Jun 5, 2026

A GraphQL directive that transforms fields to use SQL-style LIMIT/OFFSET pagination. Current version 1.0.15, stable maintenance. Unlike Relay's @connection, this uses limit/offset for natural integration with MySQL/PostgreSQL. Provides schema transformation, directive definition, and resolver helpers. Requires peer dependency graphql ^16.7.1. Ships TypeScript types.