Skip to content

[Feature Request] Add support for cursor pagination #2314

Closed
@halaei

Description

@halaei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions