Skip to content

add reverse pagination support and new cursor format

Compare
Choose a tag to compare
@g-woss-gh g-woss-gh released this 16 Jan 22:59
· 93 commits to master since this release

This release changes the pagination cursor format from "", where is a UUID, to "id:", with again represented as a UUID.

In addition to the existing "starting_after" and "limit" options, which take a cursor value and page size respectively, we also introduce the following pagination options:

ending_before - takes a cursor in the same "id:" format, resulting in the query returning "limit" results before the cursor

sort_order - either "ascending", the default, or "descending". If "ascending", results are returned in ascending order from the start, or if "descending", they are returned in descending order from the end.