Skip to content

Commit

Permalink
Merge pull request #11815 from Scrip7/patch-1
Browse files Browse the repository at this point in the history
docs(populate): find populate method should be awaited
  • Loading branch information
Uzlopak authored May 18, 2022
2 parents 96aae9f + f897b1a commit 7dc54e8
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 7dc54e8

Please sign in to comment.