MCPcopy
hub / github.com/mongodb/node-mongodb-native / initializeUnorderedBulkOp

Method initializeUnorderedBulkOp

src/collection.ts:1188–1190  ·  view source on GitHub ↗

* Initiate an Out of order batch write operation. All operations will be buffered into insert/update/remove commands executed out of order. * * @throws MongoNotConnectedError * @remarks * **NOTE:** MongoClient must be connected prior to calling this method due to a known limitation in th

(options?: BulkWriteOptions)

Source from the content-addressed store, hash-verified

1186 * However, `collection.bulkWrite()` provides an equivalent API that does not require prior connecting.
1187 */
1188 initializeUnorderedBulkOp(options?: BulkWriteOptions): UnorderedBulkOperation {
1189 return new UnorderedBulkOperation(this as TODO_NODE_3286, resolveOptions(this, options));
1190 }
1191
1192 /**
1193 * Initiate an In order bulk write operation. Operations will be serially executed in the order they are added, creating a new operation for each switch in types.

Callers 6

bulkWriteMethod · 0.95
bulk.test.tsFile · 0.80
testFunction · 0.80

Calls 1

resolveOptionsFunction · 0.90

Tested by 1

testFunction · 0.64