How do you reference an Empty set ({}) valued field in mongodb through php? -




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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -