Interface ReadPreferenceFromOptions

interface ReadPreferenceFromOptions {
    hedge?: HedgeOptions;
    maxStalenessSeconds?: number;
    readPreference?: ReadPreferenceLike | {
        maxStalenessSeconds?: number;
        mode?: ReadPreferenceMode | undefined;
        preference?: ReadPreferenceMode | undefined;
        tags?: TagSet[];
    };
    readPreferenceTags?: TagSet[];
    session?: ClientSession;
}

Hierarchy (view full)

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 | undefined;
    preference?: ReadPreferenceMode | undefined;
    tags?: TagSet[];
}
readPreferenceTags?: TagSet[]
session?: ClientSession