Skip to content

Commit

Permalink
Update docs/tutorials/findoneandupdate.md
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey authored Jan 2, 2024
1 parent 5f7da85 commit c561c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/findoneandupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Using the `upsert` option, you can use `findOneAndUpdate()` as a find-and-[upser
[require:Tutorial.*findOneAndUpdate.*upsert]
```

<h2 id="includeresultmetadata">The `includeResultMetadata` Option<h2 id="rawresult"></h2></h2>
<h2 id="includeresultmetadata">The <code>includeResultMetadata</code> Option<h2 id="rawresult"></h2></h2>

Mongoose transforms the result of `findOneAndUpdate()` by default: it
returns the updated document. That makes it difficult to check whether
Expand Down

0 comments on commit c561c93

Please sign in to comment.