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

Method deleteOne

src/bulk/common.ts:730–736  ·  view source on GitHub ↗

Add a delete one operation to the bulk operation

()

Source from the content-addressed store, hash-verified

728
729 /** Add a delete one operation to the bulk operation */
730 deleteOne(): BulkOperationBase {
731 const currentOp = buildCurrentOp(this.bulkOperation);
732 return this.bulkOperation.addToOperationsList(
733 BatchType.DELETE,
734 makeDeleteStatement(currentOp.selector, { ...currentOp, limit: 1 })
735 );
736 }
737
738 /** Add a delete many operation to the bulk operation */
739 delete(): BulkOperationBase {

Callers 2

deleteMethod · 0.45
deleteKeyMethod · 0.45

Calls 3

makeDeleteStatementFunction · 0.90
buildCurrentOpFunction · 0.85
addToOperationsListMethod · 0.45

Tested by

no test coverage detected