We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.0.3
18.18.2
6.0.12
No response
The return type for doc.findByIdAndDelete(...) is of type ModifyResult and should be a document
Expected that the return type is the document, not ModifyResult
The text was updated successfully, but these errors were encountered:
types(model): correct return type for findByIdAndDelete()
7d1f4e4
Fix #14190
types(query): improve findByIdAndDelete return type for query re: #14190
0c7c9bd
Merge pull request #14196 from Automattic/vkarpov15/gh-14190
4b069e8
Fix return types for findByIdAndDelete overrides
775aadf
7f9406f
Successfully merging a pull request may close this issue.
Prerequisites
Mongoose version
8.0.3
Node.js version
18.18.2
MongoDB server version
6.0.12
Typescript version (if applicable)
No response
Description
The return type for doc.findByIdAndDelete(...) is of type ModifyResult and should be a document
Steps to Reproduce
Expected Behavior
Expected that the return type is the document, not ModifyResult
The text was updated successfully, but these errors were encountered: