Type Alias RunCommandOptions

RunCommandOptions: {
    readPreference?: ReadPreferenceLike;
    session?: ClientSession;
    timeoutMS?: number;
} & BSONSerializeOptions

Type declaration

  • OptionalreadPreference?: ReadPreferenceLike

    The read preference

  • Optionalsession?: ClientSession

    Specify ClientSession for this command

  • Optional ExperimentaltimeoutMS?: number

    Specifies the time an operation will run until it throws a timeout error