Details
-
Bug
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
2.1.2, 2.6.3
-
ALL
-
Query 2019-11-04, Query 2019-11-18
Description
The following projection operation should likely throw a user assertion (or return nothing) due to matching an embedded object instead of the intended array:
> db.a.save( { a:{b:1} } )
|
> db.a.find( { a:{b:1} }, { 'a.$':1 } )
|
{ "_id" : ObjectId("4fe0f094026e93e0aaef076d"), "a" : { } }
|