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

Method drop

src/collection.ts:517–519  ·  src/collection.ts::Collection.drop

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

(options?: DropCollectionOptions)

Source from the content-addressed store, hash-verified

515 * @param options - Optional settings for the command
516 */
517 async drop(options?: DropCollectionOptions): Promise<boolean> {
518 return await this.db.dropCollection(this.collectionName, options);
519 }
520
521 /**
522 * Fetches the first document that matches the filter

Calls 1

dropCollectionMethod · 0.80

Tested by 4

commitQuorumTestFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testCursorFunction · 0.36