This is an extension to SERVER-18819. We should add a "number" type to $type-supported string names that rolls up all number types.
Example:
> db.coll.drop() > db.coll.insert({_id: 1, num: NumberInt('123')}) > db.coll.insert({_id: 2, num: NumberLong('123')}) > db.coll.find({num: {$type: "number"}}) { "_id" : 1, "num" : 123 } { "_id" : 2, "num" : NumberLong(123) }
- depends on
-
SERVER-18819 Allow $type to support type values as string names
- Closed
- is related to
-
DRIVERS-251 Allow $type to support string representations of type eg "number"
- Closed
- related to
-
SERVER-20345 Support additional queries with $type=number partial indexes
- Backlog