QO2*_*O23 9 couchdb cloudant couchdb-mango couchdb-2.0
我有一个芒果查询:
{
"selector": {
"age":{
"$eq": 22
}
}
}
Run Code Online (Sandbox Code Playgroud)
我想知道满足此条件的文档数量。
我知道我们可以使用 map reduce 函数来实现这一点,但是有什么方法可以通过使用 mango 查询来做到这一点,例如在查询本身中使用诸如“count”之类的键,就像我们对“sort”和“fields”所做的那样。
我正在通过 rest 客户端触发 mango 查询,并且我想要文档数作为查询的响应。
| 归档时间: |
|
| 查看次数: |
3486 次 |
| 最近记录: |