diskDB
diskDB copied to clipboard
Removal (and I think updating) does not work as expected with multiple criteria
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.
Same thing with .update()
yes same thing with .update()
will it be fixed?
thanks