Skip to content

Commit 2560b8e

Browse files
committed
Document collection.update params
Fixes #468.
1 parent 37c4bbc commit 2560b8e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/Drivers/JS/Reference/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,23 @@ ArangoDB 3.0 as it is redundant when specifying the _rev_ option.
33463346
If set to `false`, object properties that already exist in the old document
33473347
will be overwritten rather than merged. This does not affect arrays.
33483348

3349+
* **returnOld**: `boolean` (Default: `false`)
3350+
3351+
If set to `false`, return additionally the complete previous revision of the
3352+
changed documents under the attribute `old` in the result.
3353+
3354+
* **returnNew**: `boolean` (Default: `false`)
3355+
3356+
If set to `false`, return additionally the complete new documents under the
3357+
attribute `new` in the result.
3358+
3359+
* **ignoreRevs**: `boolean` (Default: `true`)
3360+
3361+
By default, or if this is set to true, the _rev attributes in the given
3362+
documents are ignored. If this is set to false, then any _rev attribute
3363+
given in a body document is taken as a precondition. The document is only
3364+
updated if the current revision is the one specified.
3365+
33493366
* **rev**: `string` (optional)
33503367

33513368
Only update the document if it matches this revision.

0 commit comments

Comments
 (0)