Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix/graphql cursor based pagination #696

Merged

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Oct 2, 2023

No description provided.

When using cursors for pagination while sorting, the sort order was inverted (desc -> asc, asc -> desc).
However, this was then not considered when selecting results based on the cursor.
For before/after results where always selected via greater/less.
Due to inverting the sort order, this also needs to be inverted depending on the sort order (desc or asc).
@Syer10 Syer10 merged commit be26288 into Suwayomi:master Oct 2, 2023
@schroda schroda deleted the fix/graphql_cursor_based_pagination branch October 3, 2023 13:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants