(Quick Reference)

Purpose

Returns the MongoDB Document for an instance of a domain class

Using the Document object directly is discouraged, because it’s inefficient. It’s better to use [dynamicAttributes].

Examples

def b = Book.get(1)

println b.dbo

Description

The dbo property allows access to the underlying MongoDB Document, which is a respresentation of the stored BSON document that can be manipulated in memory.