-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 compatibility issue for mongo < 4.2 #10281
Fix compatibility issue for mongo < 4.2 #10281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #10281 +/- ##
=======================================
Coverage 57.82% 57.82%
=======================================
Files 184 184
Lines 6393 6393
Branches 1395 1395
=======================================
Hits 3697 3697
Misses 2233 2233
Partials 463 463
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does it do?
Fix usage of model.updateOne in admin migration to ensure compatibility with mongo < 4.2.
Why is it needed?
Aggregate (array) parameter is not available for model.updateOne until mongo 4.2.
Related issue(s)/PR(s)
should fix #10096