I am trying to build a query that deletes an embedded document from a MongoDB document in PHP. What I have now is:
$collection->update(array("_id" => new MongoId($id)),
array('$unset' => 'BUSCO.short_summary_data'));
I have also tried:
$collection->remove(array("_id" => new MongoId($id)),
array('$unset' => 'BUSCO.short_summary_data'));
No error is thrown, but the embedded document still exists! Could someone help me out?