Connectionify
Change page-number-based pagination to cursor-based connection conforming to Relay Server Specification.
Connection
?
What is the
Install
$ yarn add connectionify
If your API...
Assume that your API
- using pagination based on page-number.
- 1 page has 5 items.
/users.json?&pageNum=1
Usage
Result
See also
Todo
- support 'last' argument without 'before' argument
- offset-based pagination support
- connectionify as a nexus.js plugin
If you have a feature request or a bug, please create a new issue. And also, pull requests are always welcome🙏