MarkMapper documents are the equivalent of models in ActiveRecord. An instantiated MarkMapper::Document class represents a single document in a MarkLogic collection. It also provides a number of class methods used for querying the collection itself. You can embed documents inside other documents (rather than in their own collections) using the MarkMapper::EmbeddedDocument class.