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

Deprecation rawResult warning documentation is wrong #13661

Closed
2 tasks done
ernesto-longwave opened this issue Jul 27, 2023 · 0 comments · Fixed by #13695
Closed
2 tasks done

Deprecation rawResult warning documentation is wrong #13661

ernesto-longwave opened this issue Jul 27, 2023 · 0 comments · Fixed by #13695
Labels
developer-experience This issue improves error messages, debugging, or reporting
Milestone

Comments

@ernesto-longwave
Copy link

Prerequisites

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

Mongoose version

7.4.1

Node.js version

v18.12.1

MongoDB server version

6.x

Typescript version (if applicable)

No response

Description

this link states rawResult is deprecated and rawResult: true should be modified into includeResultMetadata: false, actually should be includeResultMetadata: true.

Steps to Reproduce

try to use includeResultMetadata: false and you won't have access to, for example , lastErrorObject

Expected Behavior

the documentation should say:

rawResult: true

must be changed with

includeResultMetadata: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer-experience This issue improves error messages, debugging, or reporting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants