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

Function buildCurrentOp

src/bulk/common.ts:1246–1251  ·  view source on GitHub ↗
(bulkOp: BulkOperationBase)

Source from the content-addressed store, hash-verified

1244}
1245
1246function buildCurrentOp(bulkOp: BulkOperationBase): Document {
1247 let { currentOp } = bulkOp.s;
1248 bulkOp.s.currentOp = undefined;
1249 if (!currentOp) currentOp = {};
1250 return currentOp;
1251}

Callers 5

updateMethod · 0.85
updateOneMethod · 0.85
replaceOneMethod · 0.85
deleteOneMethod · 0.85
deleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected