[DRIVERS-730] Create an expression to test if expression type is numerical Created: 01/Aug/19 Updated: 27/May/22 Resolved: 25/Feb/20 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Server Compat: | 4.3 | ||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||
| Description |
|
A new expression, $isNumber, was added to the aggregation expression language. It takes a single expression as an unnamed argument; the format is: {$isNumber: <expression>}. It returns true if the expression evaluates to an int, double, decimal, or long, and false otherwise. |