Type Alias RunCommandOptions

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

Type declaration

  • OptionalreadPreference?: ReadPreferenceLike

    The read preference阅读偏好

  • Optionalsession?: ClientSession

    Specify ClientSession for this command为此命令指定ClientSession

  • Optional ExperimentaltimeoutMS?: number

    Specifies the time an operation will run until it throws a timeout error指定操作运行到抛出超时错误的时间