diff --git a/lib/model.js b/lib/model.js index 1cfeb3a54cd..93e34c2eb33 100644 --- a/lib/model.js +++ b/lib/model.js @@ -4867,6 +4867,7 @@ Model.__subclass = function subclass(conn, schema, collection) { * Call this function to apply virtuals and properties that were added later. * * #### Example: + * * const schema = new mongoose.Schema({ field: String }); * const TestModel = mongoose.model('Test', schema); * TestModel.schema.virtual('myVirtual').get(function() {