Skip to main content
Module

x/mongo/mod.ts>DistinctOptions

MongoDB driver for Deno
Extremely Popular
Go to Latest
interface DistinctOptions
import { type DistinctOptions } from "https://deno.land/x/mongo@v0.31.0/mod.ts";

Properties

optional
readPreference: string

The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).

optional
maxTimeMS: number

Number of milliseconds to wait before aborting the query.

optional
collation: Document

pecify collation settings for operation. See aggregation documentation(https://docs.mongodb.com/manual/reference/command/aggregate).