小编Aro*_*amy的帖子

使用 REST API 对 Firestore 查询进行结构化查询的多个 where 条件

export const structuredQuery = {
    "from": [{
        "collectionId": "products",
        "allDescendants": false
    }],

    "where": {
        "fieldFilter": {
            "field": {
                "fieldPath": "name"
            },
            "op": "EQUAL",
            "value": {
                "stringValue": "test"
            }
        }
    }
};
Run Code Online (Sandbox Code Playgroud)

上面是我现在拥有的示例结构化查询,这里我需要添加“类别”作为新条件(如名称)。

请任何人帮助我解决这一问题。

firebase google-cloud-firestore

1
推荐指数
1
解决办法
694
查看次数

标签 统计

firebase ×1

google-cloud-firestore ×1