-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.2 Required
-
Component/s: Aggregation Framework
-
Labels:
-
ALL
-
-
Query 2020-06-29, Query 2020-07-13, Query 2020-07-27
-
11
Under certain conditions $addFields may add new fields to the output document in a different order, even when applied to the same input document.
Note that this behaviour was changed in 4.4 when find and aggregate projections were unified, and the order of new fields is always the same as in $addFields specification.