Skip to content

Commit 4f21d9f

Browse files
authored
fix use of populate method
1 parent 4159069 commit 4f21d9f

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)