Mongo Database
The MongoDatabase interface.
Note: Additions to this interface will not be considered to break binary compatibility.
Since
3.0
Types
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 given name.
Create a new collection with the selected options
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
Drops this database.
Gets a collection.
Gets a collection, with a specific default document class.
Gets the names of all the collections in this database.
Finds all the collections in this database.
Executes the given command in the context of the current database with a read preference of ReadPreference.primary.
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.
Properties
Extensions
Gets a collection, with a specific default document class.