Mongo Database
The MongoDatabase representation.
Functions
Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp
and $listLocalSessions
.
Create a new collection with the selected options
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
Gets a collection.
Gets the names of all the collections in this database.
Gets all the collections in this database.
Executes the given command in the context of the current database with the given read preference.
Creates a change stream for this database.
Create a new MongoDatabase instance with a different codec registry.
Create a new MongoDatabase instance with a different read concern.
Create a new MongoDatabase instance with a different read preference.
Create a new MongoDatabase instance with a different write concern.