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

Function EmbeddedDocument

lib/schema/documentarray.js:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125 // compile an embedded document for this schema
126 function EmbeddedDocument() {
127 Subdocument.apply(this, arguments);
128 if (this.__parentArray == null || this.__parentArray.getArrayParent() == null) {
129 return;
130 }
131 this.$session(this.__parentArray.getArrayParent().$session());
132 }
133
134 schema._preCompile();
135

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected