【发布时间】:2019-07-20 01:11:16
【问题描述】:
如何使用 aql 查询将值附加到字符串数组
{
"annotation_id": "1234",
"text": {
"june 2018": [
"gain of revenue for this month"
]
},
"user_id": ""
}
这是我的 arango 文件:
for doc in annotation_info
filter doc.annotation_id == '1234'
update doc with {"text": {"june 2018":["test"]}} in annotation_info
我尝试了上述查询,但它覆盖了现有值,但我需要类似的东西
{ "annotation_id": "1234", "text": {
"june 2018": [
"gain of revenue for this month",
"test"
] }, "user_id": "" }
下面是我对 arango 文档的例外输出
{
"annotation_id": "1234",
"text": {
"june 2018": [
"gain of revenue for this month",
"test"
]
},
"user_id": ""
}
这是我的例外输出,我只需要将 value test 附加到 2018 年 6 月具有现有值的键,有人可以帮助我吗? 这应该在 aql 查询中完成
【问题讨论】:
-
@stackoverflow 我们看不到您的预期输出
标签: arangodb