Skip to main content
Module

x/mongo/mod.ts>CreateIndexOptions

MongoDB driver for Deno
Extremely Popular
Go to Latest
interface CreateIndexOptions
import { type CreateIndexOptions } from "https://deno.land/x/mongo@v0.31.0/mod.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