(Quick Reference)

Purpose

Returns the MongoDB MongoDatabase object.

Examples

MongoCollection dbCollection = Book.DB.getCollection("books")

Description

The DB property allows access to the underlying MongoDB MongoDatabase object, thus allowing easy access to the low-level MongoDB Java driver.