-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Same query producing a different result? #698
Comments
Your queries are correct. This looks like a bug. Can you submit a failing PR to reproduce this? You can start by editing this file: https://github.com/pubkey/rxdb/blob/master/test/unit/bug-report.test.js |
I could not reproduce this with the attached test. Please reopen this with a reproducing test-case |
I've been tracking this bug/feature? for a little while now and I think I found it. How to reproduce docs = await collection.find({}).exec() // docs.length == x
docs.splice(0, 1); // docs.length == x-1
docs = await collection.find({}).exec() // docs.length == x-1 Is this your case @devfelipereis? |
@gvuyk that might be the case. I think |
Hello. Sorry for being late... Look that in _data object, event_id is 1. In my query I'm looking for 2. Post schema
EDIT I close the app after posting this. Then I open again to do another test. Now I'm not getting that results. |
@devfelipereis have you enabled the query-change-detection? |
@gvuyk I fixed the problem with mutating result-arrays. |
Case
BUG
Issue
Same query producing a different result.
Info
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
"pouchdb-adapter-http": "^6.4.3"
"pouchdb-adapter-idb": "^6.4.3"
"rxdb": "^7.4.4"
"rxjs": "5.5.8"
Code
I'm new with rxdb but I think that this queries do the same thing, right?
In the first query I also get results that "event_id" is equals 1. In the second query this does't happen.
Any ideia?
The text was updated successfully, but these errors were encountered: