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

Method delete

src/bulk/common.ts:739–745  ·  view source on GitHub ↗

Add a delete many operation to the bulk operation

()

Source from the content-addressed store, hash-verified

737
738 /** Add a delete many operation to the bulk operation */
739 delete(): BulkOperationBase {
740 const currentOp = buildCurrentOp(this.bulkOperation);
741 return this.bulkOperation.addToOperationsList(
742 BatchType.DELETE,
743 makeDeleteStatement(currentOp.selector, { ...currentOp, limit: 0 })
744 );
745 }
746
747 /** Upsert modifier for update bulk operation, noting that this operation is an upsert. */
748 upsert(): this {

Callers

nothing calls this directly

Calls 3

makeDeleteStatementFunction · 0.90
buildCurrentOpFunction · 0.85
addToOperationsListMethod · 0.45

Tested by

no test coverage detected