Closed thedarkrai07 closed 2 years ago
Hi @thedarkrai07 ! Please share the PR if you already have it in place. Thanks for contributing!
Hey @leamarty, I have created the PR. I was not able to increase test coverage as the test cases are already failing. However, I have tested it with a project of mine and it works fine :)
Solved by https://github.com/mixmaxhq/mongo-cursor-pagination/pull/323. Version v7.8.0 supports it.
The $sort and $limit are sliced between the aggregate array rather than pushed in the end. This leads to abnormal behaviour while using aggregate.
@leamarty Are you open to fixing it? I can share a PR.