-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.2.0-rc0
-
Component/s: JavaScript
-
None
-
Fully Compatible
-
ALL
-
-
Platforms 13 (04/22/16), Platforms 14 (05/13/16), Platforms 15 (06/03/16), Platforms 16 (06/24/16), Platforms 17 (07/15/16), Platforms 18 (08/05/16)
mongo shell version 3.0.11 (v8)
> db.mycoll.find() { "_id" : 0, "a" : function Empty() {} }
mongo shell version 3.1.9 (SpiderMonkey)
> db.mycoll.find() { "_id" : 0, "a" : function () { } }
mongo shell version 3.2.0-rc0 (SpiderMonkey)
> db.mycoll.find() { "_id" : 0, "a" : { } } > db.mycoll.find({a: {$type: 'object'}}) { "_id" : 0, "a" : { } }