I am trying to get document which either meets one condition or the other. I want to use ||
inside .whereField(field: String, isEqualTo: )
. I've tried to add one more but it works like and &&
. I've tried to look for answer but couldn't find anywhere. Right now I have something like that:
db.collection(Constants.Firebase.conversationDB)
.whereField(field: "uid1", isEqualTo: uid)
.addSnapshotListener { snapshot, error in