如何使用和和或条件在Couch db中编写mongo查询?

时间:2018-11-03 18:24:15

标签: couchdb

我正在尝试通过提供“ or”和“ and”条件运算符来从结构中获取数据吗? 我的查询:

 {
    "selector": {
        "$and": [
            "$or": [{
                    "data.orderStatus": {
                        "$eq": "Created"
                    }
                },
                {
                    "data.orderStatus": {
                        "$eq": "In progress"
                    }
                }
            ],
            {
                "data.timeStamp": {
                    "$gt": null
                }
            }
        ]
    }
 }

0 个答案:

没有答案