* 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)
| 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 |