-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.4.1
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
ALL
-
The $year operator (and possibly others) throws an exception if the argument is an object (i.e. the result of a computation). Internally, it seems to be rejecting the argument due to legacy code for named arguments. Wrapping the object argument in an array bypasses the bug.
- is duplicated by
-
SERVER-8924 Result of date plus millseconds cannot be used within same project
- Closed