Is there any way to apply OR operation in firestore queries like:
if (name == "Jhon" || lastname == "James") { then do this }
It currently seems that Firestore does not support disjunctions.
Workaround would be to merge results of queries query.whereEqual(name, John)
and query.whereEqual(surname, James)
.
Keep in mind, that from the result you have to delete the duplicated ones, those which are evaluated as true in both conditions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With