Closed lostpebble closed 3 years ago
Which version of ArangoDB are you using? The overwriteMode
option was added fairly recently.
Currently using 3.6.7
. Is this a > 3.7 feature?
Looks like it was added in 3.7: https://www.arangodb.com/docs/stable/release-notes-new-features37.html#insert-update-and-insert-ignore
FWIW the deprecation notice in arangojs says that overwrite
is deprecated in ArangoDB 3.7. Sadly there's no way to make this any more explicit as arangojs versions are not tied 1-to-1 to ArangoDB (i.e. arangojs will work with most of the recent releases of ArangoDB but documentation will generally track the latest version only).
Feel free to reopen this issue if you need any additional information.
As per the title, this doesn't seem to work:
I was getting the error returned:
I was using the new
overwriteMode
because I see theoverwrite
option is now deprecated. But, it seems the only way to get asave()
to just replace the data that's there even if a key already exists, is to still pass the old option. This works: