Skip to content

Commit de05643

Browse files
authored
Merge pull request #1460 from vkarpov15/patch-1
docs(collection): document ordered option for insertMany
2 parents e411de7 + fa43d82 commit de05643

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)