Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/lib/data/deps.ts>mongo.CreateIndexOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface mongo.CreateIndexOptions
import { type mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { CreateIndexOptions } = mongo;

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