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

Missing typings when includeResultMetadata flag is used in options #13746

Closed
2 tasks done
Idnan opened this issue Aug 17, 2023 · 0 comments · Fixed by #13747
Closed
2 tasks done

Missing typings when includeResultMetadata flag is used in options #13746

Idnan opened this issue Aug 17, 2023 · 0 comments · Fixed by #13747
Milestone

Comments

@Idnan
Copy link
Contributor

Idnan commented Aug 17, 2023

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.3

Node.js version

20.0.0

MongoDB server version

6.0.6

Typescript version (if applicable)

5.1.6

Description

I have the following piece of code that works fine when I am using the following option rawResult: true.

image

But the same code gives me a missing typing error on Line#26 when I'm replacing rawResult: true with includeResultMetadata: true.
image

Steps to Reproduce

Write any findOneAndUpdate query and in the options replace rawResult with includeResultMetadata. You will get the typings error.

Expected Behavior

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants