子文檔


Subdocument.prototype.$parent()

返回此子文檔的父文檔。


Subdocument.prototype.deleteOne()

參數
  • [options] «物件»
  • [callback] «函式» 與 Document.prototype.remove 相容的可選回呼函式

將此子文檔設為 null


Subdocument.prototype.inspect()

用於 console.log 的輔助函式


Subdocument.prototype.ownerDocument()

返回
  • «文檔»

返回此子文檔的頂層文檔。


Subdocument.prototype.parent()

返回此子文檔的父文檔。