-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.3.1
-
Component/s: Aggregation Framework
-
Labels:None
-
Query Optimization
Currently $addFields stage uses its own parser and validator to parse a raw BSON projection. In SERVER-42988 we added support for the aggregate-style syntax in the new projection parser, meaning that it can now be used to not only parse a $project specification, but also $addFields. Once the new parser is plugged into $addFields, the old parse() method can be removed.