Query.where adding isNotEqualTo from 4.13.1 to 4.13.6 #12084
Unanswered
andy-tmpt-me
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! Enjoying building with Flutter and Firebase. Filing this as Q&A because its possibly an error on my part.
My Flutter web application broke when I updated the cloud_firestore package from 4.13.1 to 4.13.6
The issue appeared when I tried to wrap the Query.where method as follows:
(The intent of this wrapper class is just to record the fields being queried so I have better diagnostics for permission denied and other such errors)
What's happening with 4.13.6 is that when I call something like:
The underlying query acts as if I've set both isEqualTo using my value and isNotEqualTo using null, resulting in this error:
Commenting out the passing of isNotEqualTo in the delegated call to Query.where fixes the issue, but I must be misunderstanding a Dart fundamental because I thought that passing null into an optional argument was semantically equivalent to not passing the argument at all.
Thanks for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions