I am trying to use Filter.or in react native firebase but it gives an error 'or' not defined. #7340
gorkemunluyurt
started this conversation in
General
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.
-
I import the firestore library as in the documentation.
import firestore, {Filter} from '@react-native-firebase/firestore';
It already works properly in everything else, but when I want to use Filter.or, it gives an error that 'or' is not defined.
Example use:
const bigCities = await citiesRef
.where(
Filter.or(
Filter.where('capital', '==', true),
Filter.where('population', '>=', 1000000)
)
)
.get();
Beta Was this translation helpful? Give feedback.
All reactions