@@ -476,6 +476,34 @@ paths:
476
476
affect the edge index or cache-enabled persistent indexes.
477
477
schema:
478
478
type: boolean
479
+ - name: versionAttribute
480
+ in: query
481
+ required: false
482
+ description: |
483
+ Only applicable if `overwrite` is set to `true` or `overwriteMode`
484
+ is set to `update` or `replace`.
485
+
486
+ You can use the `versionAttribute` option for external versioning support.
487
+ If set, the attribute with the name specified by the option is looked up in the
488
+ stored document and the attribute value is compared numerically to the value of
489
+ the versioning attribute in the supplied document that is supposed to update/replace it.
490
+
491
+ If the version number in the new document is higher (rounded down to a whole number)
492
+ than in the document that already exists in the database, then the update/replace
493
+ operation is performed normally. This is also the case if the new versioning
494
+ attribute has a non-numeric value, if it is a negative number, or if the
495
+ attribute doesn't exist in the supplied or stored document.
496
+
497
+ If the version number in the new document is lower or equal to what exists in
498
+ the database, the operation is not performed and the existing document thus not
499
+ changed. No error is returned in this case.
500
+
501
+ The attribute can only be a top-level attribute.
502
+
503
+ You can check if `_oldRev` (if present) and `_rev` are different to determine if the
504
+ document has been changed.
505
+ schema:
506
+ type: string
479
507
- name: x-arango-trx-id
480
508
in: header
481
509
required: false
@@ -856,6 +884,31 @@ paths:
856
884
replacements affect the edge index or cache-enabled persistent indexes.
857
885
schema:
858
886
type: boolean
887
+ - name: versionAttribute
888
+ in: query
889
+ required: false
890
+ description: |
891
+ You can use the `versionAttribute` option for external versioning support.
892
+ If set, the attribute with the name specified by the option is looked up in the
893
+ stored document and the attribute value is compared numerically to the value of
894
+ the versioning attribute in the supplied document that is supposed to replace it.
895
+
896
+ If the version number in the new document is higher (rounded down to a whole number)
897
+ than in the document that already exists in the database, then the replace
898
+ operation is performed normally. This is also the case if the new versioning
899
+ attribute has a non-numeric value, if it is a negative number, or if the
900
+ attribute doesn't exist in the supplied or stored document.
901
+
902
+ If the version number in the new document is lower or equal to what exists in
903
+ the database, the operation is not performed and the existing document thus not
904
+ changed. No error is returned in this case.
905
+
906
+ The attribute can only be a top-level attribute.
907
+
908
+ You can check if `_oldRev` and `_rev` are different to determine if the
909
+ document has been changed.
910
+ schema:
911
+ type: string
859
912
- name: If-Match
860
913
in: header
861
914
required: false
@@ -1178,6 +1231,31 @@ paths:
1178
1231
affect the edge index or cache-enabled persistent indexes.
1179
1232
schema:
1180
1233
type: boolean
1234
+ - name: versionAttribute
1235
+ in: query
1236
+ required: false
1237
+ description: |
1238
+ You can use the `versionAttribute` option for external versioning support.
1239
+ If set, the attribute with the name specified by the option is looked up in the
1240
+ stored document and the attribute value is compared numerically to the value of
1241
+ the versioning attribute in the supplied document that is supposed to update it.
1242
+
1243
+ If the version number in the new document is higher (rounded down to a whole number)
1244
+ than in the document that already exists in the database, then the update
1245
+ operation is performed normally. This is also the case if the new versioning
1246
+ attribute has a non-numeric value, if it is a negative number, or if the
1247
+ attribute doesn't exist in the supplied or stored document.
1248
+
1249
+ If the version number in the new document is lower or equal to what exists in
1250
+ the database, the operation is not performed and the existing document thus not
1251
+ changed. No error is returned in this case.
1252
+
1253
+ The attribute can only be a top-level attribute.
1254
+
1255
+ You can check if `_oldRev` and `_rev` are different to determine if the
1256
+ document has been changed.
1257
+ schema:
1258
+ type: string
1181
1259
- name: If-Match
1182
1260
in: header
1183
1261
required: false
@@ -1875,6 +1953,34 @@ paths:
1875
1953
affect the edge index or cache-enabled persistent indexes.
1876
1954
schema:
1877
1955
type: boolean
1956
+ - name: versionAttribute
1957
+ in: query
1958
+ required: false
1959
+ description: |
1960
+ Only applicable if `overwrite` is set to `true` or `overwriteMode`
1961
+ is set to `update` or `replace`.
1962
+
1963
+ You can use the `versionAttribute` option for external versioning support.
1964
+ If set, the attribute with the name specified by the option is looked up in the
1965
+ stored document and the attribute value is compared numerically to the value of
1966
+ the versioning attribute in the supplied document that is supposed to update/replace it.
1967
+
1968
+ If the version number in the new document is higher (rounded down to a whole number)
1969
+ than in the document that already exists in the database, then the update/replace
1970
+ operation is performed normally. This is also the case if the new versioning
1971
+ attribute has a non-numeric value, if it is a negative number, or if the
1972
+ attribute doesn't exist in the supplied or stored document.
1973
+
1974
+ If the version number in the new document is lower or equal to what exists in
1975
+ the database, the operation is not performed and the existing document thus not
1976
+ changed. No error is returned in this case.
1977
+
1978
+ The attribute can only be a top-level attribute.
1979
+
1980
+ You can check if `_oldRev` (if present) and `_rev` are different to determine if the
1981
+ document has been changed.
1982
+ schema:
1983
+ type: string
1878
1984
- name: x-arango-trx-id
1879
1985
in: header
1880
1986
required: false
@@ -2146,6 +2252,31 @@ paths:
2146
2252
replacements affect the edge index or cache-enabled persistent indexes.
2147
2253
schema:
2148
2254
type: boolean
2255
+ - name: versionAttribute
2256
+ in: query
2257
+ required: false
2258
+ description: |
2259
+ You can use the `versionAttribute` option for external versioning support.
2260
+ If set, the attribute with the name specified by the option is looked up in the
2261
+ stored document and the attribute value is compared numerically to the value of
2262
+ the versioning attribute in the supplied document that is supposed to replace it.
2263
+
2264
+ If the version number in the new document is higher (rounded down to a whole number)
2265
+ than in the document that already exists in the database, then the replace
2266
+ operation is performed normally. This is also the case if the new versioning
2267
+ attribute has a non-numeric value, if it is a negative number, or if the
2268
+ attribute doesn't exist in the supplied or stored document.
2269
+
2270
+ If the version number in the new document is lower or equal to what exists in
2271
+ the database, the operation is not performed and the existing document thus not
2272
+ changed. No error is returned in this case.
2273
+
2274
+ The attribute can only be a top-level attribute.
2275
+
2276
+ You can check if `_oldRev` and `_rev` are different to determine if the
2277
+ document has been changed.
2278
+ schema:
2279
+ type: string
2149
2280
- name: x-arango-trx-id
2150
2281
in: header
2151
2282
required: false
@@ -2368,6 +2499,31 @@ paths:
2368
2499
affect the edge index or cache-enabled persistent indexes.
2369
2500
schema:
2370
2501
type: boolean
2502
+ - name: versionAttribute
2503
+ in: query
2504
+ required: false
2505
+ description: |
2506
+ You can use the `versionAttribute` option for external versioning support.
2507
+ If set, the attribute with the name specified by the option is looked up in the
2508
+ stored document and the attribute value is compared numerically to the value of
2509
+ the versioning attribute in the supplied document that is supposed to update it.
2510
+
2511
+ If the version number in the new document is higher (rounded down to a whole number)
2512
+ than in the document that already exists in the database, then the update
2513
+ operation is performed normally. This is also the case if the new versioning
2514
+ attribute has a non-numeric value, if it is a negative number, or if the
2515
+ attribute doesn't exist in the supplied or stored document.
2516
+
2517
+ If the version number in the new document is lower or equal to what exists in
2518
+ the database, the operation is not performed and the existing document thus not
2519
+ changed. No error is returned in this case.
2520
+
2521
+ The attribute can only be a top-level attribute.
2522
+
2523
+ You can check if `_oldRev` and `_rev` are different to determine if the
2524
+ document has been changed.
2525
+ schema:
2526
+ type: string
2371
2527
- name: x-arango-trx-id
2372
2528
in: header
2373
2529
required: false
0 commit comments