Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
http://docs.mongodb.org/manual/reference/aggregation/#conditional-expressions
The documentation refers to "boolean-expression", "true-case", "false-case" for $cond and "expression", "replacement-if-null" for $ifNull.
Are these types strings that contain javascript expressions? Are document elements usable as inputs? If documents being aggregated on are not available, what can this be used for? A non-trivial example usage would definitely go a long way.