relay-mongodb-connection

JSON →
library 2.1.0 ·javascript
verified Jun 5, 2026

A library that provides Relay-compatible cursor-based pagination for MongoDB cursors, mongoose queries, and aggregations. Version 2.1.0 is the latest stable release, with a simple API similar to graphql-relay's connectionFromArray. It automatically applies skip/limit to the cursor to fetch only necessary documents. Differentiators: supports both native MongoDB driver and mongoose, optional mapper function, and does not require pre-sorting or building edges array in memory.