Interface ClientSessionOptions

interface ClientSessionOptions {
    causalConsistency?: boolean;
    defaultTimeoutMS?: number;
    defaultTransactionOptions?: TransactionOptions;
    snapshot?: boolean;
}

Properties

causalConsistency?: boolean

Whether causal consistency should be enabled on this session

defaultTimeoutMS?: number

An overriding timeoutMS value to use for a client-side timeout. If not provided the session uses the timeoutMS specified on the MongoClient.

defaultTransactionOptions?: TransactionOptions

The default TransactionOptions to use for transactions started on this session.

snapshot?: boolean

Whether all read operations should be read from the same snapshot for this session (NOTE: not compatible with causalConsistency=true)