Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface CreateIndexOptions
import { type CreateIndexOptions } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Properties

indexes: IndexOptions[]

Specifies the indexes to create. Each document in the array specifies a separate index.

optional
writeConcern: Document

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

optional
commitQuorum: number | string

Optional. The minimum number of data-bearing voting replica set members (i.e. commit quorum), including the primary, that must report a successful index build before the primary marks the indexes as ready. A “voting” member is any replica set member where members[n].votes is greater than 0.

optional
comment: Document

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