remove uses findOne to find the document to remove from localforage. This means that if the selector matches multiple documents then only one is removed from localforage, but all are removed from the Collection.
Also, that only one would be removed is inconsistent and non-obvious. Can all documents matching the selector be removed?
remove
usesfindOne
to find the document to remove from localforage. This means that if the selector matches multiple documents then only one is removed from localforage, but all are removed from the Collection.Also, that only one would be removed is inconsistent and non-obvious. Can all documents matching the selector be removed?