Interface ReadPreferenceFromOptions

Hierarchy

Properties

hedge?: HedgeOptions

Server mode in which the same query is dispatched in parallel to multiple replica set members.

maxStalenessSeconds?: number

Max secondary read staleness in seconds, Minimum value is 90 seconds.

readPreference?: ReadPreferenceLike | {
    maxStalenessSeconds?: number;
    mode?: ReadPreferenceMode;
    preference?: ReadPreferenceMode;
    tags?: TagSet[];
}

Type declaration

readPreferenceTags?: TagSet[]
session?: ClientSession

Generated using TypeDoc