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

Method dropCollection

src/db.ts:409–412  ·  src/db.ts::Db.dropCollection

* Drop a collection from the database, removing it permanently. New accesses will create a new collection. * * @param name - Name of collection to drop * @param options - Optional settings for the command

(name: string, options?: DropCollectionOptions)

Source from the content-addressed store, hash-verified

407 * @param options - Optional settings for the command
408 */
409 async dropCollection(name: string, options?: DropCollectionOptions): Promise<boolean> {
410 options = resolveOptions(this, options);
411 return await dropCollections(this, name, options);
412 }
413
414 /**
415 * Drop a database, removing it permanently from the server.

Callers 15

operations.tsFile · 0.80
index.jsFile · 0.80
dropCollectionFunction · 0.80
gridfs.test.tsFile · 0.80
view.test.tsFile · 0.80
find.test.tsFile · 0.80
maxTimeMS.test.tsFile · 0.80

Calls 2

resolveOptionsFunction · 0.90
dropCollectionsFunction · 0.90

Tested by 3

defineCorpusTestsFunction · 0.64
dropAndCreateCollectionFunction · 0.64
testCursorFunction · 0.64