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
Copy file name to clipboardExpand all lines: README.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1202,7 +1202,9 @@ If *opts* is set, it must be an object with any of the following properties:
1202
1202
1203
1203
**waitForSync*: Wait until the documents have been synced to disk. Default: `false`.
1204
1204
**details*: Whether the response should contain additional details about documents that could not be imported. Default: *false*.
1205
-
**type*: Indicates which format the data uses. Can be `"collection"`, `"array"` or `"auto"`. Default: `"auto"`.
1205
+
**type*: Indicates which format the data uses. Can be `"documents"`, `"array"` or `"auto"`. Default: `"auto"`.
1206
+
1207
+
If *data* is a JavaScript array, it will be transmitted as a line-delimited JSON stream. If *opts.type* is set to `"array"`, it will be transmitted as regular JSON instead. If *data* is a string, it will be transmitted as it is without any processing.
1206
1208
1207
1209
For more information on the *opts* object, see [the HTTP API documentation for bulk imports](https://docs.arangodb.com/HttpBulkImports/ImportingSelfContained.html).
1208
1210
@@ -1213,16 +1215,40 @@ var db = require('arangojs')();
1213
1215
db.collection('users', function (err, collection) {
0 commit comments