Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for findOneAndUpdate needs to be updated to replace rawResult option with includeResultMetadata #14207

Closed
2 tasks done
adamreisnz opened this issue Dec 30, 2023 · 1 comment · Fixed by #14208
Closed
2 tasks done
Labels
priority Automatically set for Mongoose Pro subscribers
Milestone

Comments

@adamreisnz
Copy link
Contributor

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Page at https://mongoosejs.com/docs/tutorials/findoneandupdate.html

This still references rawResult, and I was stumped trying to find out why it wasn't working as expected until I searched the issues here and found an issue that mentioned it was renamed to includeResultMetadata.

It worked as expected with includeResultMetadata

@mongoose-pro-bot mongoose-pro-bot added the priority Automatically set for Mongoose Pro subscribers label Dec 30, 2023
@vkarpov15 vkarpov15 added this to the 8.0.4 milestone Dec 30, 2023
vkarpov15 added a commit that referenced this issue Jan 2, 2024
docs: update findOneAndUpdate tutorial to use includeResultMetadata
@adamreisnz
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority Automatically set for Mongoose Pro subscribers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants