@@ -609,15 +609,33 @@ used to specify the following options:
609
609
a default * waitForSync* value of * true* .
610
610
- * silent* : If this flag is set to * true* , the method does not return
611
611
any output.
612
- - * overwrite* : If set to * true* , the insert becomes a replace-insert.
613
- If a document with the same * _ key* already exists the new document
614
- is not rejected with unique constraint violated but will replace
615
- the old document.
616
612
- * returnNew* : If this flag is set to * true* , the complete new document
617
613
is returned in the output under the attribute * new* .
618
614
- * returnOld* : If this flag is set to * true* , the complete old document
619
615
is returned in the output under the attribute * old* . Only available
620
616
in combination with the * overwrite* option
617
+ - * overwrite* : If set to * true* , the insert becomes a replace-insert.
618
+ If a document with the same * _ key* already exists the new document
619
+ is not rejected with unique constraint violated but will replace
620
+ the old document.
621
+ - * overwriteMode* : If this optional flag is set to * replace* or * update* ,
622
+ it implicitly activates the * overwrite* mode. In case it is set to
623
+ * update* , the replace-insert becomes an update-insert.
624
+ Otherwise this option follows the rules of the overwrite parameter.
625
+ The * update* operation can be controlled by the * keepNull* and
626
+ * mergeObjects* parameters.
627
+ - * keepNull* : The optional * keepNull* parameter can be used to modify
628
+ the behavior when handling * null* values. Normally, * null* values
629
+ are stored in the database. By setting the * keepNull* parameter to
630
+ * false* , this behavior can be changed so that all attributes in
631
+ * data* with * null* values will be removed from the target document.
632
+ This option controls the update-insert behavior only.
633
+ - * mergeObjects* : Controls whether objects (not arrays) will be
634
+ merged if present in both the existing and the patch document. If
635
+ set to * false* , the value in the patch document will overwrite the
636
+ existing document's value. If set to * true* , objects will be merged.
637
+ The default is * true* .
638
+ This option controls the update-insert behavior only.
621
639
622
640
` collection.insert(array) `
623
641
@@ -1433,4 +1451,4 @@ as second argument.
1433
1451
@END_EXAMPLE_ARANGOSH_OUTPUT
1434
1452
@endDocuBlock accessViaGeoIndex
1435
1453
{% endarangoshexample %}
1436
- {% include arangoshexample.html id=examplevar script=script result=result %}
1454
+ {% include arangoshexample.html id=examplevar script=script result=result %}
0 commit comments