I have 2 fields with other fields named 'uId' and 'sellerUId' in my collections as in the screenshot below. Both are Auth IDs. I want to filter uId == auth_id or sellerUId == auth_id.
I have tried the following query:
.doc('doc name')
.collection('collection name')
.where(['uId', 'sellerUId'], isEqualTo: 'auth_id')
.get()
.then((QuerySnapshot querySnapshot) {
for (var doc in querySnapshot.docs) {
print(doc.id);
}
});