Similar to #22, if you do a .remove() with multiple criteria, each thing that matches one of the criteria is removed, not everything that matches all the criteria.
Right now I've gotten around it by doing a find with the criteria, looping those and doing a removal via the _id, but it feels like the remove should work the same way as the find.
I mentioned update in the title, because looking at util.js where it does the updateFiltered, it has the same logic as remove. Howeve I've not needed to use update yet to confirm for sure.
Similar to #22, if you do a
.remove()with multiple criteria, each thing that matches one of the criteria is removed, not everything that matches all the criteria.Right now I've gotten around it by doing a
findwith the criteria, looping those and doing a removal via the_id, but it feels like theremoveshould work the same way as thefind.I mentioned
updatein the title, because looking atutil.jswhere it does theupdateFiltered, it has the same logic asremove. Howeve I've not needed to useupdateyet to confirm for sure.