-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(firestore): Filter typing. Filter.or
& Filter.and
can accept each other
#7904
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is divergent from the type system firebase-js-sdk uses, QueryFilterConstraint
should be composed of QueryCompositeFilterConstraint
already, and not need a change.
Current def of QueryFilterConstraint should be changed/renamed similar to upstream QueryFieldFilterConstraint
then QueryFilterConstraint is composed of both of them...
I always look at judge typing changes by looking through firebase-js-sdk until I find their declarations and then seeing whether we are getting closer or father away from what they're doing - goal being to do exactly what they are doing unless we have some react-native-specific reason to deviate ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - this looks like it has a lot more fidelity with the firebase-js-sdk type system and should allow and/or to also accept and/or
Description
Related issues
fixes #7850
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter