Skip to content

added aggregation field to the end #318

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
wants to merge 1 commit into from

Conversation

thedarkrai07
Copy link

Changes Made

Currently, sort and limits are added at the next index of $match. This leads to other operations in the pipeline applied after the limit query giving wrong results. This change ensures that the sort and limit queries are applied in the end.

Ref: Issue #317

Potential Risks

No risks

Test Plan

Change is straightforward. I have also tested it with one of my projects

Checklist

  • I've increased test coverage
  • Since this is a public repository, I've checked I'm not publishing private data in the code, commit comments or this PR.

@bradvogel
Copy link
Contributor

Does this pass unit tests locally?

@raphaelbs
Copy link
Contributor

Hey @thedarkrai07, thanks for your contribution.
I'm closing this one because it was solved by #323.
You can use v7.8.0 now.

@raphaelbs raphaelbs closed this Aug 24, 2022
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

Successfully merging this pull request may close these issues.

3 participants