From 3aa85eec5389a64850d05272851301d7bae803a0 Mon Sep 17 00:00:00 2001 From: Makhoul Shbeeb Date: Fri, 30 Aug 2024 18:29:53 +0300 Subject: [PATCH] Update populate.md to fix missing match: { } --- docs/populate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` ```