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

Method constructor

src/operations/delete.ts:102–104  ·  view source on GitHub ↗
(ns: MongoDBCollectionNamespace, filter: Document, options: DeleteOptions)

Source from the content-addressed store, hash-verified

100
101export class DeleteOneOperation extends DeleteOperation {
102 constructor(ns: MongoDBCollectionNamespace, filter: Document, options: DeleteOptions) {
103 super(ns, [makeDeleteStatement(filter, { ...options, limit: 1 })], options);
104 }
105
106 override handleOk(
107 response: InstanceType<typeof this.SERVER_COMMAND_RESPONSE_TYPE>

Callers

nothing calls this directly

Calls 1

makeDeleteStatementFunction · 0.85

Tested by

no test coverage detected