-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.1
-
Component/s: Aggregation Framework
-
None
-
Minor Change
-
ALL
-
v4.0, v3.6, v3.4
-
-
Query 2018-10-22
-
(copied to CRM)
Using $arrayToObject on an array of {k: ..., v: ...} objects where some k are repeating outputs an object that behaves inconsistently.
Referencing this object as a whole using "$object" outputs an object with a field value that is different compared to the value obtained by referencing the field directly using "$object.field".
- is duplicated by
-
SERVER-37198 Add tests for $arrayToObject behaviour when two keys are identical
- Closed