Mongo Client
A client-side representation of a MongoDB cluster.
Instances can represent either a standalone MongoDB instance, a replica set, or a sharded cluster. Instance of this class are responsible for maintaining an up-to-date state of the cluster, and possibly cache resources related to this, including background threads for monitoring, and connection pools.
Instances of this class serve as factories for MongoDatabase instances. Instances of this class can be created via the MongoClient.create helpers
See also
Types
A factory for MongoClient instances.
Functions
Executes a client-level bulk write operation. This method is functionally equivalent to bulkWrite(models, options) with the default options.
Executes a client-level bulk write operation. This method is functionally equivalent to bulkWrite(clientSession, models, options) with the default options.
Executes a client-level bulk write operation.
Gets the current cluster description.
Gets a MongoDatabase instance for the given database name.
Get a list of the database names
Gets the list of databases
Gets the list of databases
Creates a client session.
Creates a change stream for this client.
Create a new MongoCluster instance with a different codec registry.
Create a new MongoCluster instance with a different read concern.
Create a new MongoCluster instance with a different read preference.
Create a new MongoCluster instance with the set time limit for the full execution of an operation.
Create a new MongoCluster instance with a different write concern.