[20:13:55] <dreamreal> I'm trying to figure out how to update a document in a collection such that the subarray loses an element, but I'm not.. like... sure how $pull* work. The structure of the document looks like this: { 'foo':'bar','sub': [ { 'baz': 'quux' }, {'baz':'quork'} ] }
[20:15:15] <dreamreal> and I'm trying to delete 'baz':'quork' from the array, with updateOne({'foo':bar'}, { $pullAll: {'sub.baz': ['quork']} })