Have a strange problem with react-native-firebase library:
Steps:
Try to fetch data with the firestore:
await firestore().collection(collectionName)
.where(ConversationModel.refs.employees, 'array-contains', '646').get();
where 646 - element in array
When I use an array of strings, this code works as expected
But when I set the number value (646) and try to fetch the array of numbers - this code returns empty result.
Correct sample:
await firestore().collection(collectionName) .where(ConversationModel.refs.employees, 'array-contains', '646').get();
Wrong sample:
await firestore().collection(collectionName) .where(ConversationModel.refs.employees, 'array-contains', 646).get();
UPDATE: Fixed in 6.1.0 https://invertase.io/oss/react-native-firebase/releases/v6.1.0

