Skip to content

Commit fa43d82

Browse files
authored
docs(collection): document ordered option for insertMany
As specified in https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#basic
1 parent ae67052 commit fa43d82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/collection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ define.classMethod('insertOne', {callback: true, promise:true});
478478
* @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
479479
* @param {boolean} [options.forceServerObjectId=false] Force server to assign _id values instead of driver.
480480
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
481+
* @param {boolean} [options.ordered=true] If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails.
481482
* @param {Collection~insertWriteOpCallback} [callback] The command result callback
482483
* @return {Promise} returns Promise if no callback passed
483484
*/

0 commit comments

Comments
 (0)