我喜欢下面的json
"User|255": {
"_id": 255,
"_type": "User",
"children": [
482,
636,
637,
638,
651,
673,
872
],
"created": "2016-02-01T18:30:00.000Z",
}
现在我想像 on keys['User|TOSTRING(children[*])']
我试过以下
select Users._id from default U1 join default Users
on keys ("User|"||TOSTRING(U1.children[*]))
where Campaign._type='User' and _id= 255
但它不起作用
答案 0 :(得分:3)
你走了。
ON KEYS ARRAY 'User|' || TO_STRING(c) FOR c IN U1.children END