首页 > 解决方案 > 在 Firestore 中实现 OR 查询

问题描述

query = db.collection("transaction")
            .whereEqualTo("product1","A").whereEqualTo("product2","A");

我想获取 product1 或 product2 的值为“A”的数据,但使用上面的代码,我通过查询 AND 获取数据

标签: androidfirebasegoogle-cloud-firestore

解决方案


推荐阅读