You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bulk imports the given values into the collection.
17
13
@@ -27,39 +23,56 @@ Bulk imports the given values into the collection.
27
23
28
24
-**fromPrefix**: `String`
29
25
30
-
An optional prefix for the values in \_from attributes. If specified, the value is automatically prepended to each \_from input value. This allows specifying just the keys for \_from.
26
+
An optional prefix for the values in \_from attributes. If specified,
27
+
the value is automatically prepended to each \_from input value.
28
+
This allows specifying just the keys for \_from.
31
29
32
30
-**toPrefix**: `String`
33
31
34
-
An optional prefix for the values in \_to attributes. If specified, the value is automatically prepended to each \_to input value. This allows specifying just the keys for \_to.
32
+
An optional prefix for the values in \_to attributes. If specified,
33
+
the value is automatically prepended to each \_to input value.
34
+
This allows specifying just the keys for \_to.
35
35
36
36
-**overwrite**: `Boolean`
37
37
38
-
If this parameter has a value of true, then all data in the collection will be removed prior to the import. Note that any existing index definitions will be preseved.
38
+
If this parameter has a value of true, then all data in the collection
39
+
will be removed prior to the import. Note that any existing index definitions
40
+
will be preserved.
39
41
40
42
-**waitForSync**: `Boolean`
41
43
42
44
Wait until documents have been synced to disk before returning.
43
45
44
46
-**onDuplicate**: `OnDuplicate`
45
47
46
-
Controls what action is carried out in case of a unique key constraint violation. Possible values are:
48
+
Controls what action is carried out in case of a unique key constraint violation.
49
+
Possible values are:
47
50
48
-
-**error**: this will not import the current document because of the unique key constraint violation. This is the default setting.
51
+
-**error**: this will not import the current document because of the
52
+
unique key constraint violation. This is the default setting.
49
53
50
-
-**update**: this will update an existing document in the database with the data specified in the request. Attributes of the existing document that are not present in the request will be preseved.
54
+
-**update**: this will update an existing document in the database with
55
+
the data specified in the request. Attributes of the existing document
56
+
that are not present in the request will be preserved.
51
57
52
-
-**replace**: this will replace an existing document in the database with the data specified in the request.
58
+
-**replace**: this will replace an existing document in the database with
59
+
the data specified in the request.
53
60
54
-
-**ignore**: this will not update an existing document and simply ignore the error caused by the unique key constraint violation. Note that update, replace and ignore will only work when the import document in the request contains the \_key attribute. update and replace may also fail because of secondary unique key constraint violations.
61
+
-**ignore**: this will not update an existing document and simply ignore
62
+
the error caused by the unique key constraint violation. Note that update,
63
+
replace and ignore will only work when the import document in the request
64
+
contains the \_key attribute. update and replace may also fail because of
65
+
secondary unique key constraint violations.
55
66
56
67
-**complete**: `Boolean`
57
68
58
-
If set to true, it will make the whole import fail if any error occurs. Otherwise the import will continue even if some documents cannot be imported.
69
+
If set to true, it will make the whole import fail if any error occurs.
70
+
Otherwise the import will continue even if some documents cannot be imported.
59
71
60
72
-**details**: `Boolean`
61
73
62
-
If set to true, the result will include an attribute details with details about documents that could not be imported.
74
+
If set to true, the result will include an attribute details with details
0 commit comments