0

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
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
green8
  • 376
  • 2
  • 14
  • Firestore does not support OR conditions across multiple fields at the moment. The closest it as is an `IN` condition, but that's for multiple values on the same field. – Frank van Puffelen Nov 29 '22 at 18:10

0 Answers0