techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.73k stars 482 forks source link

Functions findAndRemove() and removeWhere() not working #870

Closed wilianwrech closed 2 years ago

wilianwrech commented 3 years ago

I am trying to remove documents from one collection using findAndRemove()

image

As described in documentation, this code above should work, or am I missing something?

findAndRemove(filterObject) Applies a 'mongo-like' find query object removes all documents which match that filter.

I also tried to use removeWhere() and nothing happens, it seems I can't remove documents at all.

findAndUpdate() and updateWhere() are working fine.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.