OPTIONS

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.setSlaveOk() Allows operations on the current connection to read from secondary members.
Mongo() Creates a new connection object.
connect() Connects to a MongoDB instance and to a specified database on that instance.

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.