Skip to content

Commit 3f8e2cd

Browse files
authored
Merge pull request #2501 from leomfn/patch-5
fix use of populate method
2 parents 4159069 + 4f21d9f commit 3f8e2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/4/en/part4c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ The selection of fields is done with the Mongo [syntax](https://docs.mongodb.com
497497
```js
498498
usersRouter.get('/', async (request, response) => {
499499
const users = await User
500-
.find({}).populate('notes', { content: 1, important: })
500+
.find({}).populate('notes', { content: 1, important: 1 })
501501

502502
response.json(users)
503503
})

0 commit comments

Comments
 (0)