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
It seems that the compileQuery function is returning false if the property value is null.
I think it needs to flow to subsequent processing even if the property value is null.
We are aware of this limitation and working on it in #187. So far, there's only an integration test that confirm the issue is there.
I can't promise anything as to when this is going to be resolved though. As one of my countless endeavours, I'm also rewriting how Data works from scratch to account for some fundamental shortcomings its current design has, and enable more features like querying by null.
That being said, I'm unlikely to prioritize this issue any time soon. Anybody is welcome to tackle this, taking the referenced pull request and its tests as a starting point. If not, expect this to be fixed once the rewrite is done. Thanks.
Current behavior
It is not possible to get a model for which a specific property is null.
Minimum reproduction code
https://codesandbox.io/s/inspiring-fog-wesv28?file=/index.js
Expected behavior
It seems that the compileQuery function is returning false if the property value is null.
I think it needs to flow to subsequent processing even if the property value is null.
data/src/query/compileQuery.ts
Lines 35 to 39 in c7fef7b
The text was updated successfully, but these errors were encountered: