I apologise if this is a dumb question but it is driving me nuts. I am fairly new to arango but usually I can muddle through and work it out, but not this time.
I want to insert another set of items into the list called 'type' in the data below. I can modify the contents of the sublist using an update but can't seem to work out how to append to the list.
FOR doc IN MAG_TEST filter doc._key == "3704086" INSERT {"Name":"Mary","datestart":"16 March 2017"} INTO doc.type
So this [ { "_key": "3704086", "_id": "MAG_TEST/3704086", "_rev": "3704109", "name": "Flip", "type": [ { "name": "flop", "sdate": "13 April 2016" }, { "name": "flap", "sdate": "14 April 2017" } ] } ]
becomes this [ { "_key": "3704086", "_id": "MAG_TEST/3704086", "_rev": "3704109", "name": "Flip", "type": [ { "name": "flop", "sdate": "13 April 2016" }, { "name": "flap", "sdate": "14 April 2017" }, { "name": "fling", "sdate": "18 April 2018" } ] } ]