Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
Mac OSX (could be everywhere)
*Location*: https://docs.mongodb.com/v2.6/reference/operator/update/pull/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36
*Screen Resolution*: 1440 x 900
Description
$elemMatch is not working with this version (2.6). instead use the following query to remove objects from array with matching criteria :
db.survey.update(
{ },
{ $pull: { results:
} },
false, true
)