MatrixAI / js-pagination

Pagination library that supports Offset and Cursor based pagination
https://matrix.ai
Apache License 2.0
0 stars 0 forks source link

Changed order to direction #12

Closed CMCDragonkai closed 3 years ago

CMCDragonkai commented 3 years ago

Fixes #11.

@DrFacepalm

CMCDragonkai commented 3 years ago

This will need to result in a 1.1.0 release.

Most of the fix actually relies on the backend fixing this.

Since the idea is that sort should be controlling it. But that isn't really part of pagination, since not all APIs may have a sort. But now the backend actually flips this.

We need to describe how this is meant to be implemented here in the README.md.

CMCDragonkai commented 3 years ago

Understanding the nature of the seek index or key is actually quite important. Added notes on what is actually expected here.