* Drops an index from this collection. * * @param indexName - Name of the index to drop. * @param options - Optional settings for the command
(indexName: string, options?: DropIndexesOptions)
| 703 | * @param options - Optional settings for the command |
| 704 | */ |
| 705 | async dropIndex(indexName: string, options?: DropIndexesOptions): Promise<Document> { |
| 706 | return await executeOperation( |
| 707 | this.client, |
| 708 | new DropIndexOperation(this as TODO_NODE_3286, indexName, { |
| 709 | ...resolveOptions(this, options), |
| 710 | readPreference: ReadPreference.primary |
| 711 | }) |
| 712 | ); |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * Drops all indexes from this collection. |
no test coverage detected