Skip to content

Commit

Permalink
Update lib/model.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey authored Feb 5, 2024
1 parent c480bd6 commit 574cca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/model.js
Original file line number Diff line number Diff line change
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 574cca0

Please sign in to comment.