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

Fix query options bug from Mongodb breaking change #615

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

JafarAkhondali
Copy link
Contributor

The PR: #558 updated mongodb version from 2.2.24 to 3.5.5. There are some breaking changes in mongodb 3.x.x version like find which removed the projection field as separate parameters and expectes it in options.
Since projection was the second field and query_options was the third one, all features like sorting and pagination were corrupted by the update. This PR will fix this issue.

@dozoisch
Copy link
Collaborator

dozoisch commented Oct 5, 2020

Thanks!

@dozoisch dozoisch merged commit 1fe5d83 into mongo-express:master Oct 5, 2020
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.

2 participants