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

Function EmbeddedDocument

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

Source from the content-addressed store, hash-verified

67function _createConstructor(schema, options) {
68 // compile an embedded document for this schema
69 function EmbeddedDocument() {
70 Subdocument.apply(this, arguments);
71 }
72
73 EmbeddedDocument.prototype = Object.create(Subdocument.prototype);
74 EmbeddedDocument.prototype.$__setSchema(schema);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected