MCPcopy Create free account
hub / github.com/Automattic/mongoose / EmbeddedDocument

Function EmbeddedDocument

lib/schema/documentArray.js:141–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140 // compile an embedded document for this schema
141 function EmbeddedDocument() {
142 Subdocument.apply(this, arguments);
143 if (this.__parentArray == null || this.__parentArray.getArrayParent() == null) {
144 return;
145 }
146 this.$session(this.__parentArray.getArrayParent().$session());
147 }
148
149 schema._preCompile();
150

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected