Skip to content

Cursor based pagination / .find $gt support? #90

@alienself

Description

@alienself

Hi,

Can I use this package to find document with a cursor for pagination?

I tried the following where cursor is a uuid v1 but this does not work, the documents returned are incorrect, it should return items after the provided cursor id.

    if (cursor) {
        matchStage._id = { $gt: mUUID.from(cursor) };
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions