【问题标题】:Multiple where clause with OR query for firestore带有 OR 查询的多个 where 子句用于 firestore
【发布时间】:2021-04-01 15:29:17
【问题描述】:

我想在我的 Flutter Firestore 查询中实现两个 where 子句,以便它们作为 OR 函数工作。如果任何查询为真,我希望显示结果。

【问题讨论】:

  • 您能否详细说明您的问题?

标签: flutter google-cloud-firestore where-clause


【解决方案1】:

正如文档所述,Firestore 对 where 子句没有 OR 操作。最接近的是“in”,它将根据值数组(最多 10 个值)检查单个字段。否则,您将不得不发出多个查询并将它们组合到您的应用程序中。

请查看当前query operators supported

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多