NedbEmbeddedDocument

This is the class that you should use when making schemas or models for your own database subdocuments or embedded documents.

Inherit (extend) this class and add your properties to it, and that becomes your embedded document.

Please note that due to bugs in JSDoc, the static methods that this class has available to it will not show up on this class's page - but instead, on the NedbBaseDocument page. Please see the "Extends" section for that URL, and dig into the parent class for the static method documentation.

Constructor

new NedbEmbeddedDocument()

Author
  • BigfootDS

Extends

Methods

(async) getData(populateopt) → {Object}

Get the plain JavaScript object representation of a SuperCamo document instance.

Parameters:
NameTypeAttributesDefaultDescription
populateBoolean<optional>
true

Optional. Set this to true to return all referenced documents as objects within the parent object.

Author
  • BigfootDS
Returns:
Type: 
Object