I'm just new to ArangoDB, so could you give me any tips how I can perform the following update?
I have the document collection, each document has a attribute seen
. I want to update the existing collection from a csv-file in the following way: if in the file there is a line with _key
that already is in the collection, I want to sum the seen
value from csv-file and from the collection and replace the value in the collection by the sum; if there is no document with such _key
, I just want to add it.
As far as I know, it is a little bit too much for the arangoimp
tool, as it has an option either to replace or ignore dublicates.
How would you do that?
I would be grateful for any ideas.