Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.DistinctOptions

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface mongo.DistinctOptions
import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { DistinctOptions } = mongo;

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).