Skip to content

Commit

Permalink
docs(populate): find populate method should be awaited
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrip7 authored May 17, 2022
1 parent 96aae9f commit f897b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/populate.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ If you were to `populate()` using the `limit` option, you
would find that the 2nd story has 0 fans:

```javascript
const stories = Story.find().populate({
const stories = await Story.find().populate({
path: 'fans',
options: { limit: 2 }
});
Expand Down

0 comments on commit f897b1a

Please sign in to comment.