Skip to content

Commit 922e940

Browse files
committed
match_project - Fixed incorrectly named variable in if statement
1 parent 9174e2e commit 922e940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/50-aggregation/2-match-project.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ db.books.aggregate([
127127

128128
var plentifulBooks = pipeline.ToList();
129129

130-
if(results != null)
130+
if(plentifulBooks != null)
131131
{
132132
foreach(var book in plentifulBooks)
133133
{
@@ -178,7 +178,7 @@ db.books.aggregate([
178178

179179
var plentifulBooks = pipeline.ToList();
180180

181-
if(results != null)
181+
if(plentifulBooks != null)
182182
{
183183
foreach(var book in plentifulBooks)
184184
{

0 commit comments

Comments
 (0)