我成功地能够从
GET /mycollection?ql=select data.visitor.badges where data.visitor._id = 'f33498'
哪个返回
{
"action": "get",
"application": "313hhlkhj77080",
"params": {
"ql": [
"select data.visitor.badges where data.visitor._id = 'f33498'"
]
},
"path": "/mycollection",
"uri": "http://xxxx/appservices/xxxxxx/mycollection",
"list": [
[
[
"New Visitor",
"Cart Abandoner"
]
],
[
[
"New Visitor",
"Repeat Visitors",
"Cart Abandoner"
]
],
[
[
"New Visitor",
"Repeat Visitors",
"Browse Abandoner"
]
]
],
"timestamp": 1407968065207,
"duration": 35,
"organization": "visitor-baas",
"applicationName": "sandbox",
"count": 3
}
但是,我不知道如何修改以下查询以允许我将结果集缩小到仅包含 data.user.badges 数组中的“Cart Abandoner”值的那些。
这可能吗?我试过了:
GET /mycollection?ql=select data.visitor.badges where data.visitor.badges = 'Cart Abandoner'
这似乎返回 data.visitor.badges 数组,其中“Cart Abandoner”是数组的最后一个位置。
GET /mycollection?ql=select data.visitor.badges where data.visitor.badges contains 'Cart Abandoner'
这似乎没有返回任何东西。
我错过了什么?