Skip to main content
Module

x/denomongo_unittest_utils/deps.ts>DropIndexOptions

Unittest utilities for deno_mongo
Latest
interface DropIndexOptions
import { type DropIndexOptions } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.ts";

Properties

index: string | IndexOptions | string[]

Specifies the indexes to drop. To drop all but the _id index from the collection, specify "*". To drop a single index, specify either the index name, the index specification document (unless the index is a text index), or an array of the index name. To drop a text index, specify the index names instead of the index specification document. To drop multiple indexes (Available starting in MongoDB 4.2), specify an array of the index names. See https://docs.mongodb.com/manual/reference/command/dropIndexes/#mongodb-dbcommand-dbcmd.dropIndexes

optional
writeConcern: Document

Optional. A document expressing the write concern. Omit to use the default write concern.

optional
comment: Document

Optional. A user-provided comment to attach to this command. Once set