I have a document that has a nested array. I want to delete an item in the array by it's key value. I've tried doing an update with:
array('$unset' => array('item.key' => 1))
array('$pull' => array('item.key' => 1))
Doing, $unset
, kept the key but nulled out the value, I want to get rid of it entirely. Pull didn't do anything.
Any suggestions?
Thank you!