0
这可能更像是一个普遍的查询问题,因为我对数据库相当陌生。N1ql Couchbase:如何让N1qlQueryResult获得子项?
如果我有一个couchbase桶这个文件:
{
"accId": "1234",
"operation": "test",
"response": "a response"
}
我能得到的代码响应
N1qlQueryResult result = bucket.query(select("response").fromCurrentBucket().where((x("accId").eq("\""+Id+"\"")).and(x("operation").eq("\""+op+"\""))));
但如果我的JSON是这样的:
{
"organization": {
"accId": "1234",
"operation": "test",
"response": "a response
}
}
我将如何着手获得回应?
感谢您的帮助。