Skip to content
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

Add support of the cursor pagination #108

Open
vrusua opened this issue Jul 5, 2021 · 1 comment
Open

Add support of the cursor pagination #108

vrusua opened this issue Jul 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@vrusua
Copy link

vrusua commented Jul 5, 2021

@alexzarbn

Hi Aleksei,

Recently, the cursor pagination has been added to Laravel core and Eloquent API Resources:
https://laravel.com/docs/8.x/pagination#cursor-pagination
laravel/framework#37216
laravel/framework#37315

It suits better for infinite scrolling and has a better performance in comparison to the offset based one
https://shopify.engineering/pagination-relative-cursors

Just wondering, can we use the cursor pagination in Orion, or?

Thanks,
Ruslan

@alexzarbn
Copy link
Member

Hi @vrusua,

It is currently not supported in Orion, but might be added in the future releases.

In the meantime, please take a look at how you can customize queries - might be possible to get cursor pagination working by overriding a few query builder methods.

@alexzarbn alexzarbn added the enhancement New feature or request label Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants