How do you reference an Empty set ({}) valued field in mongodb through php? -
this question has answer here:
i have following code works fine in mongodb client:-
db.whatevercollection.update({id:999999,external_ids:{}}, {$unset: { "external_ids": true}})
how reference empty set in php external_ids field removed? using this:-
array('id' => $id,'external_ids'=>array())
doesn't work...
wiki
Comments
Post a Comment