Skip to main content
Very Popular
Latest
method Collection.prototype.createIndexes
import { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts";

Create an index on the collection

Parameters

options: CreateIndexOptions

The options for the operation

Returns

Promise<{ ok: number; createdCollectionAutomatically: boolean; numIndexesBefore: number; numIndexesAfter: number; }>

The result of the operation