Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
http://docs.mongodb.org/manual/reference/operator/aggregation/ifNull/#ifnull-aggregation
Consider
{$ifNull:["$thisFieldDoesNotExist",true]}
|
seems to consider the value of "$thisFieldDoesNotExist" as being null, so the expression evaluates to true.
Assuming this behavior is consistent across all Aggregation Framework-enabled versions, it'd be good to explicitly state this or include an example that shows this.