Hi there !
I want to be able to change 'ext' attribute value of the 2nd items in the following object:
{
"_id": "1234",
"purpose": "tree",
"items": [
{ "name": "list1", "ext": "alpha3" },
{ "name": "list2", "ext": "beta3" },
{ "name": "list3", "ext": "gamma3"
}
],
"gasp": {
"ref": "creation1"
}
}
I know there are AQL solutions using SLICE / MERGE ( as shown here
https://github.com/arangodb/arangodb/issues/1633 )
but would it be possible, in a future version of ArangoDB, to be able to write some more *simple* AQL
maybe something like
FOR p in myCollection
FILTER p._key=='123'
UPDATE p.items[2] with {ext:"beta4"} in myCollection
Best regards,