-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
-
Query Optimization 2021-02-22
having following document:
{ "user": [1], "grades": [ {"grade": 80, "mean": 75, "std": 40}, {"grade": 85, "mean": 90, "std": 45}, {"grade": 90, "mean": 85, "std": 50} ] }
this query:
db.students.updateOne( { user: 1, "grades.grade": 85 }, { $set: { "grades.$.std" : 6 } } )
update first element in grades instead of second one.
- duplicates
-
SERVER-18500 Resolve ambiguity of positional projections with multiple implicit array traversal predicates in certain cases
- Backlog