Skip to content

Commit

Permalink
Update populate.md to fix missing match: { }
Browse files Browse the repository at this point in the history
  • Loading branch information
makhoulshbeeb authored Aug 30, 2024
1 parent 69dacc2 commit 3aa85ee
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 3aa85ee

Please # to comment.