Details
-
Task
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
Description
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.
|
Attachments
Issue Links
- is duplicated by
-
SERVER-31282 $project of nested projection regression 3.2 -> 3.4
-
- Closed
-