添加到 JSON 数组

Add to JSON array

如何使用 N1QL 将新元素附加到现有数组?

[
{
  "address": "127.0.0.1",
  "time": 0
},
{
  "address": "127.0.0.1",
  "time": 0
}
]

可以设置更新数据

 ARRAY_APPEND(field, { "adress":"127.0.0.1", "time":null }) 

 where "key you need to use as reference' = "referemce data"