Deserialize data as BSON.
the buffer containing the serialized set of BSON documents.
returns the deserialized Javascript Object.
Serialize a Javascript object.
the Javascript object to serialize.
Buffer object containing the serialized object.
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
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.
A TopologyDescription
for this topology
Close this topology
Initiate server connect
Send endSessions command(s) with the given session ids
Whether sessions are supported on the current topology
Selects a server according to the selection predicate provided
Optional settings related to server selection
The callback used to indicate success or failure
An instance of a Server
meeting the criteria of the predicate provided
Update the internal TopologyDescription with a ServerDescription
The server to update in the internal list of server descriptions
Whether the topology should initiate selection to determine session support
Start a logical session
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
A container of server instances representing a connection to a MongoDB topology.