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

Method deleteMany

src/collection.ts:478–486  ·  view source on GitHub ↗

* Delete multiple documents from a collection * * @param filter - The filter used to select the documents to remove * @param options - Optional settings for the command

(
    filter: Filter<TSchema> = {},
    options: DeleteOptions = {}
  )

Source from the content-addressed store, hash-verified

476 * @param options - Optional settings for the command
477 */
478 async deleteMany(
479 filter: Filter<TSchema> = {},
480 options: DeleteOptions = {}
481 ): Promise<DeleteResult> {
482 return await executeOperation(
483 this.client,
484 new DeleteManyOperation(this.s.namespace, filter, resolveOptions(this, options))
485 );
486 }
487
488 /**
489 * Rename the collection.

Callers 15

operations.tsFile · 0.80
setupDatabaseFunction · 0.80
sessions.test.tsFile · 0.80
collection.test.tsFile · 0.80
find.test.tsFile · 0.80
insert.test.tsFile · 0.80
crud_api.test.tsFile · 0.80
testFunction · 0.80

Calls 2

executeOperationFunction · 0.90
resolveOptionsFunction · 0.90

Tested by 1

testFunction · 0.64