Details
Description
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) }
|
Attachments
Issue Links
- depends on
-
SERVER-18819 Allow $type to support type values as string names
-
- Closed
-
- is documented by
-
DOCS-5838 $type operator supports "number"
-
- Closed
-
-
DOCS-5883 Document "number" alias for $type
-
- 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
-