-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Fully Compatible
-
Query 2019-07-29, Query 2019-08-12
Currently to determine if type of expression is a number you have to do this:
{$in:[ {$type:"$expression"}, ["int", "long", "double", "decimal"] ]}
It would be nice to have shorthand syntax for this test. Maybe $isNumeric or $isNumber?
Note that query/matcher already supports {a:{$type:"number"}} but not agg.
- is depended on by
-
DRIVERS-730 Create an expression to test if expression type is numerical
- Closed