The consolidate, parsed, transformed and merged options.合并、解析、转换和合并选项。
Sets or gets the default captureRejection value for all emitters.设置或获取所有发射器的默认captureRejection值。
This symbol shall be used to install a listener for only monitoring 此符号应用于安装仅用于监控'error'
events. 'error'
事件的侦听器。Listeners installed using this symbol are called before the regular 在调用常规'error'
listeners are called.'error'
侦听器之前,将调用使用此符号安装的侦听器。
Installing a listener using this symbol does not change the behavior once an 使用此符号安装侦听器不会在发出'error'
event is emitted, therefore the process will still crash if no regular 'error'
listener is installed.'error'
事件后更改行为,因此如果未安装常规的'error'
侦听器,进程仍将崩溃。
Intended for APM use only仅供APM使用
Intended for APM use only仅供APM使用
Connect to MongoDB using a url使用url连接到MongoDB
Create a new Db instance sharing the current socket connections.创建共享当前套接字连接的新Db实例。
The name of the database we want to use. 我们要使用的数据库的名称。If not provided, use database name from connection string.如果未提供,请使用连接字符串中的数据库名称。
Optional settings for Db constructionDb构造的可选设置
Return the mongo client logger
Starts a new session on the server
Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this cluster. Will ignore all changes to system collections, as well as the local, admin, and config databases.
An array of aggregation pipeline stages through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.
Optional settings for the command
Runs a given operation with an implicitly created session. 使用隐式创建的会话运行给定操作。The lifetime of the session will be handled without the need for user interaction.会话的生存期将在不需要用户交互的情况下处理。
NOTE: presently the operation MUST return a Promise (either explicit or implicitly as an async function)注意:当前操作必须返回承诺(作为异步函数显式或隐式)
An callback to execute with an implicitly created session使用隐式创建的会话执行的回调
Connect to MongoDB using a url使用url连接到MongoDB
Returns a list listener for a specific emitter event name.返回特定发射器事件名称的列表侦听器。
Generated using TypeDoc
The MongoClient class is a class that allows for making Connections to MongoDB.MongoClient
类是一个允许连接MongoDB的类。The programmatically provided options take precedent over the URI options.以编程方式提供的选项优先于URI选项。