Skip to content

Commit cf8c8e1

Browse files
authored
Merge pull request #14847 from makhoulshbeeb/patch-1
Update populate.md to fix missing match: { }
2 parents 02dd603 + 3aa85ee commit cf8c8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/populate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ the story's `author` will be `null`.
246246
```javascript
247247
const story = await Story.
248248
findOne({ title: 'Casino Royale' }).
249-
populate({ path: 'author', name: { $ne: 'Ian Fleming' } }).
249+
populate({ path: 'author', match: { name: { $ne: 'Ian Fleming' } } }).
250250
exec();
251251
story.author; // `null`
252252
```

0 commit comments

Comments
 (0)