【问题标题】:How to select documents not contained in given array?如何选择给定数组中不包含的文档?
【发布时间】:2017-10-12 11:03:08
【问题描述】:

我只想从集合中选择那些ids 不包含在给定数组中的文档。 Google Firestore 是否可行? The official docs 只说基本查询,如 >、

基本上我需要Parsequery.whereKey("playerName", notContainedIn: names) 功能

【问题讨论】:

    标签: ios swift firebase google-cloud-firestore


    【解决方案1】:

    不,目前这是不可能的。 Firestore 不允许 != 查询,只允许相等和范围(正如您在文档链接中提到的那样)。

    【讨论】:

    • 嗯,这很烦人。您知道 Firebase 是否允许此类查询?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-16
    • 2018-03-26
    • 1970-01-01
    • 2012-03-10
    • 2016-12-11
    • 2021-09-10
    • 1970-01-01
    相关资源
    最近更新 更多