Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
Gbengstar authored Jan 25, 2023
1 parent c190bd6 commit 0a70016
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 @@ -883,7 +883,7 @@ Alternatively, you can check out the [mongoose-autopopulate plugin](http://npmjs
<h3 id="transform-populated-documents"><a href="#transform-populated-documents">Transform populated documents</a></h3>

You can manipulate populated documents using the `transform` option.
If you specify a `transform` function, Mongoose will call this function on every populated document in the result wiwith two arguments: the populated document, and the original id used to populate the document.
If you specify a `transform` function, Mongoose will call this function on every populated document in the result with two arguments: the populated document, and the original id used to populate the document.
This gives you more control over the result of the `populate()` execution.
It is especially useful when you're populating multiple documents.

Expand Down

0 comments on commit 0a70016

Please sign in to comment.