Interface ReadPreferenceLikeOptions

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?: mongoose.mongo.ReadPreferenceMode;
    preference?: mongoose.mongo.ReadPreferenceMode;
    tags?: mongoose.mongo.TagSet[];
}

Type declaration

Generated using TypeDoc