Subdocument


Subdocument.prototype.$parent()

Returns this sub-documents parent document.


Subdocument.prototype.deleteOne()

Parameters:
  • [options] «Object»
  • [callback] «Function» optional callback for compatibility with Document.prototype.remove

Null-out this subdoc


Subdocument.prototype.inspect()

Helper for console.log


Subdocument.prototype.ownerDocument()

Returns:
  • «Document»

Returns the top level document of this sub-document.


Subdocument.prototype.parent()

Returns this sub-documents parent document.