【发布时间】:2023-03-09 22:45:02
【问题描述】:
我有如下 JSON 格式
{
"_id": "000fad10-b2de-11e6-92de-632a9b1d21d9",
"_type": "Company",
"status": 1,
"transactions": [
{
"completed": 1,
"currency": "USD",
"date": "2015-12-01T18:30:00.000Z",
"method": 0,
"type": 0
}
]
}
我想像下面的查询一样运行
select * from MyBucket where transactions.method in (0,3);
如何在 N1QL 中做到这一点??
【问题讨论】:
标签: json node.js couchbase n1ql