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

Method initializeOrderedBulkOp

src/collection.ts:1200–1202  ·  view source on GitHub ↗

* 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. * * @throws MongoNotConnectedError * @remarks * **NOTE:** MongoClient must be connected prior to calling this method due to a

(options?: BulkWriteOptions)

Source from the content-addressed store, hash-verified

1198 * However, `collection.bulkWrite()` provides an equivalent API that does not require prior connecting.
1199 */
1200 initializeOrderedBulkOp(options?: BulkWriteOptions): OrderedBulkOperation {
1201 return new OrderedBulkOperation(this as TODO_NODE_3286, resolveOptions(this, options));
1202 }
1203
1204 /**
1205 * An estimated count of matching documents in the db to a filter.

Callers 7

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

Calls 1

resolveOptionsFunction · 0.90

Tested by 1

testFunction · 0.64