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()
Copyright © 2011-2014 MongoDB, Inc. Licensed under Creative Commons. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.