diff --git a/docs/populate.md b/docs/populate.md index 0a24878d68..1f9d6cdfd4 100644 --- a/docs/populate.md +++ b/docs/populate.md @@ -246,7 +246,7 @@ the story's `author` will be `null`. ```javascript const story = await Story. findOne({ title: 'Casino Royale' }). - populate({ path: 'author', name: { $ne: 'Ian Fleming' } }). + populate({ path: 'author', match: { name: { $ne: 'Ian Fleming' } } }). exec(); story.author; // `null` ```