We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone,
While I am trying to remove a document from a collection, Rxdb don't emit any change. Example :
var col; RxDB.create('heroesDB', 'memory') // create database .then(function (db) { return db.collection('mycollection', mySchema); }) // create collection .then(function (collection) { col = collection; collection .find() .$ // <- returns observable of query .subscribe(docs => { if (docs) { console.dir(docs); // change } }); collection.insert({users: [{name: 'one'}, {name: 'two'}]}); return collection; }).then((collection) => { collection.findOne({users: {$eq: [{name: 'one'}, {name: 'two'}]}}).exec() .then(documents => { if (documents) { console.log('remove'); documents.remove(); }; }); return collection; }).then((collection) => { setTimeout(function () { col.insert({users: [{name: 'three'}, {name: 'four'}]}); }, 1000); });
output :
Array[1] // change remove Array[1] // change
I was expecting a change on remove, with a 0 lenght document.
The text was updated successfully, but these errors were encountered:
Error should be fixed with PR.
Sorry, something went wrong.
Merge pull request #53 from salomonelli/master
533f86d
FIX bug #52 query.$ fires on remove
Fixed in version 2.0.4. Please upgrade.
No branches or pull requests
Hi everyone,
While I am trying to remove a document from a collection, Rxdb don't emit any change.
Example :
output :
I was expecting a change on remove, with a 0 lenght document.
The text was updated successfully, but these errors were encountered: