You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 where actual_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 of actual_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 of actual_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?
Hi @MrChadMWood
This is a good catch. Chained queries cannot be used on RxQuery instances that are created with findByIds. I will add a check to ensure this is properly shown to the developer.
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: