Skip to content

Commit

Permalink
Merge branch 'vkarpov15/gh-14296' of github.com:Automattic/mongoose i…
Browse files Browse the repository at this point in the history
…nto vkarpov15/gh-14296
  • Loading branch information
vkarpov15 committed Feb 5, 2024
2 parents 6bd5c07 + 574cca0 commit d30f557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/model.js
Expand Up @@ -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() {
Expand Down

0 comments on commit d30f557

Please sign in to comment.