Skip to content

Commit

Permalink
Merge pull request #14847 from makhoulshbeeb/patch-1
Browse files Browse the repository at this point in the history
Update populate.md to fix missing match: { }
  • Loading branch information
vkarpov15 committed Sep 3, 2024
2 parents 02dd603 + 3aa85ee commit cf8c8e1
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 @@ -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`
```
Expand Down

0 comments on commit cf8c8e1

Please sign in to comment.