8000 [Feature Request] Add support for cursor pagination · Issue #2314 · mongodb/laravel-mongodb · GitHub
[go: up one dir, main page]

Skip to content

[Feature Request] Add support for cursor pagination #2314

New issue

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

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

Already on GitHub? Sign in to your account

Closed
halaei opened this issue Sep 12, 2021 · 1 comment
Closed

[Feature Request] Add support for cursor pagination #2314

halaei opened this issue Sep 12, 2021 · 1 comment

Comments

@halaei
Copy link
Contributor
halaei commented Sep 12, 2021

Is your feature request related to a problem?

This feature was added to Laravel 8. Please see the docs: https://laravel.com/docs/8.x/pagination#cursor-pagination.

Describe the solution you'd like

Currently it doesn't work on this package. The first reason is that in this package orders are stored differently in builder objects and therefore Query|Eloquent\Builder::ensureOrderForCursorPagination() methods doesn't return the expected results. So the fix can be to override ensureOrderForCursorPagination() in this package or make sure orders arrays in mongodb builder objects are the same format as those in the original Laravel ones.

@halaei
Copy link
Contributor Author
halaei commented Sep 14, 2021

Duplicate of #2312

@halaei halaei closed this as completed Sep 14, 2021
divine added a commit that referenced this issue Mar 7, 2022
* Add support for cursor pagination
This commit adds support for Laravel cursor pagination.
Fixes #2314

Co-authored-by: divine <48183131+divine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0