June 2014
Intermediate to advanced
696 pages
38h 52m
English
When you use the Model object to retrieve documents from a database, the documents are presented in the callback function as Mongoose Document objects. Document objects inherit from the Model class and represent the documents in a collection. The Document object allows you to interact with a document from the perspective of your schema model by providing a number of methods and extra properties that support validation, modifications, etc.
Table 16.5 lists the most useful methods and properties on the Document object.
Table 16.5 Methods and properties available on Document objects
Read now
Unlock full access