Navigation
This version of the documentation is archived and no longer supported.

Connection Methods

Name Description
Mongo.getDB() Returns a database object.
Mongo.getReadPrefMode() Returns the current read preference mode for the MongoDB connection.
Mongo.getReadPrefTagSet() Returns the read preference tag set for the MongoDB connection.
Mongo.setReadPref() Sets the read preference for the MongoDB connection.
Mongo() Creates a new connection object.
connect() Connects to a MongoDB instance and to a specified database on that instance.