【发布时间】:2018-02-05 18:40:50
【问题描述】:
如果我有如下所示的 Couchbase 文档:
{
"history": {
"id": "123",
"date": "today",
"status_history": [
{
"code": "0",
"message": "success",
"status": "complete"
}
],
"other": "other"
}
}
如果我想获取今天的所有文件,我可以执行 select * from 'my_bucket' where history.date = "today" 之类的操作
但是我怎样才能从数组结构中的 status_history 中获得类似状态的东西呢?
select * from 'my_bucket' where history.status_history. status?? = "complete"
【问题讨论】: