-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
During the 3.4 development cycle we re-wrote the $project stage. Our compatibility notes already list one $project compatibility change, but there are more that are worth mentioning. Specifically, the following:
{$project: {a: {b: "$missingField"}}} used to be {}, now (3.4+) is {a: {}} {$project: {'a.b': <expression>}} used to be {'a.b': <result of expression>}, now is an error (field names with dots aren't really supported elsewhere) _id will always show up in explain output for inclusion projections, even if not explicitly mentioned.
- is duplicated by
-
SERVER-31282 $project of nested projection regression 3.2 -> 3.4
- Closed