diff --git a/lib/schema/subdocument.js b/lib/schema/subdocument.js index 1963f908a43..ce07826d4ff 100644 --- a/lib/schema/subdocument.js +++ b/lib/schema/subdocument.js @@ -386,7 +386,7 @@ SchemaSubdocument.prototype.toJSON = function toJSON() { * ignore */ -SubdocumentPath.prototype.clone = function() { +SchemaSubdocument.prototype.clone = function() { const schematype = new this.constructor( this.schema, this.path,