On this page
Provides access to database objects from
The Mongo.getDB() method has the following parameter:
The following example instantiates a new connection to the MongoDB
instance running on the localhost interface and returns a reference
db = new Mongo().getDB("myDatabase");
Mongo() and connect()
© MongoDB, Inc 2008-2017. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.