-
-
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
collection.findByIds() accepts chain queries, but does nothing with them #6148
Comments
Hi @MrChadMWood |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. Please update it or it may be closed to keep our repository organized. The best way is to add some more information or make a pull request with a test case. Also you might get help in fixing it at the RxDB Community Chat If you know you will continue working on this, just write any message to the issue (like "ping") to remove the stale tag. |
This check was added. Please check the latest release. |
As seen below, I try querying with chained operators in order to add additional conditions to
findByIds
. In practice, I'm trying to get records from the array of IDs whereactual_finish_date=null
. For demonstration purposes, I'm searching for'some-fake-value'
.Following, I convert the returned
Map
into an array to see the values returned. Based on the accepted query, I would expect all returns to have the value ofactual_finish_date='some-fake-value'
. However, I'm simply given all records that match the array of IDs, without any filtration done based on the value ofactual_finish_date
.This is therefore the wrong result to my query. If
findByIds
does not support chained queries, I would guess an error should be thrown. The acceptance of the query is what confuses me. Would the bug be the lack of filtration, or the acceptance of the chained query?Versions:
This is the case with Dexie and Memory storage.
The text was updated successfully, but these errors were encountered: