diskDB icon indicating copy to clipboard operation
diskDB copied to clipboard

Removal (and I think updating) does not work as expected with multiple criteria

Open Nysosis opened this issue 7 years ago • 2 comments

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.

Nysosis avatar Jan 10 '18 23:01 Nysosis

Same thing with .update()

SideHalk avatar Aug 29 '18 13:08 SideHalk

yes same thing with .update()

will it be fixed?

thanks

amchconsult avatar Nov 06 '18 22:11 amchconsult