Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
2.4.1
-
None
-
Fully Compatible
-
ALL
-
Description
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.
Attachments
Issue Links
- is duplicated by
-
SERVER-8924 Result of date plus millseconds cannot be used within same project
-
- Closed
-