[SERVER-34373] create an expression to test if expression type is numerical Created: 07/Apr/18 Updated: 29/Oct/23 Resolved: 01/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | George Wangensteen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | expression, pm1457, usability | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Query 2019-07-29, Query 2019-08-12 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Currently to determine if type of expression is a number you have to do this:
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. |
| Comments |
| Comment by Githook User [ 01/Aug/19 ] |
|
Author: {'name': 'George Wangensteen', 'email': 'george.wangensteen@10gen.com'}Message: |