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.19.0
6.2.0
5.1.6
The return type for doc.findByIdAndDelete(...) is of type ModifyResult while MongoDB returns the document
Similiar issue but on different method: #14130
await doc.findByIdAndDelete(id).exec(); // ModifyResult await doc.findByIdAndDelete(id, {}).exec(); // Document
Expecting return type to be the document, not ModifyResult
ModifyResult
The text was updated successfully, but these errors were encountered:
#14190
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Mongoose version
8.0.3
Node.js version
18.19.0
MongoDB server version
6.2.0
Typescript version (if applicable)
5.1.6
Description
The return type for doc.findByIdAndDelete(...) is of type ModifyResult while MongoDB returns the document
Similiar issue but on different method: #14130
Steps to Reproduce
Expected Behavior
Expecting return type to be the document, not
ModifyResult
The text was updated successfully, but these errors were encountered: