Closed robross0606 closed 3 years ago
arangojs v6 supported the if-match
header, v7 does not. The header is redundant as the same behavior can be achieved by setting the _rev
property on the document itself.
Can you try setting _rev
on the payload instead of rev
on the options and report back whether that works? I would then adjust the migration guide accordingly.
I'm closing this as a duplicate of #707 as that issue provides more additional information and the solution seems to be to re-implement the if-match
header from v6.
The migration guide doesn't mention that the
rev
option appears to no longer be available oncollection.update()
. I haveignoreRevs
set tofalse
in theoptions
section ofcollection.update()
. This worked previously by also passing in therev
option at the same spot we passed inignoreRevs
. This appears to be ignored now. Our unit tests are failing because revision of "BOGUS" is being completely ignored by theupdate()
call. I'm assuming that, instead, the value must be passed in with the input data but it isn't made clear anywhere in the documentation. Do you have migration guide suggestions for how to handle update revisions?