Skip to content

Commit

Permalink
Merge pull request #13000 from Automattic/vkarpov15/gh-12895
Browse files Browse the repository at this point in the history
docs(populate): fix out of date comment referencing `onModel` property
  • Loading branch information
vkarpov15 committed Feb 4, 2023
2 parents 1fd5d7d + a2a57c8 commit 5099423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/populate.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ const commentSchema = new Schema({
type: Schema.Types.ObjectId,
required: true,
// Instead of a hardcoded model name in `ref`, `refPath` means Mongoose
// will look at the `onModel` property to find the right model.
// will look at the `docModel` property to find the right model.
refPath: 'docModel'
},
docModel: {
Expand Down

0 comments on commit 5099423

Please sign in to comment.