Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface CreateCollectionOptions
import { type CreateCollectionOptions } from "https://deno.land/x/mongo@v0.31.1/src/types.ts";

Properties

optional
capped: boolean
optional
timeseries: { timeField: string; metaField?: string; granularity?: TimeSeriesGranularity; }
optional
expireAfterSeconds: number
optional
autoIndex: boolean
optional
size: number
optional
max: number
optional
storageEngine: Document
optional
validator: Document
optional
validationLevel: ValidationLevel
optional
validationAction: ValidationAction
optional
indexOptionDefaults: Document
optional
viewOn: string
optional
pipeline: Document[]
optional
collation: Document
optional
writeConcern: Document