-
Notifications
You must be signed in to change notification settings - Fork 1
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
DocumentNotFoundError not bubbled up by SDK #55
Comments
Thanks for tracking this separately, I have opened an issue internally with nodejs team to track |
updateMany and removeMany is not expected to throw DocumentNotFoundError since for multi-ops, it's a filter rather than providing a key Reference #55
updateMany and removeMany is not expected to throw DocumentNotFoundError since for multi-ops, it's a filter rather than providing a key Reference #55
I have updated the test case And also, just a note... |
All mutation operations are not returning back DocumentNotFoundError |
findOneAndUpdate
removeById
replaceById
updateById |
Thanks @bwgjoseph |
With #56, |
fixed with beta.9 |
Can I check if the cause and context stated as
|
Also, another suggestion to improve the exception message. I'm not sure if it make sense to say why the document not found? is it useful? Something like Given
Return
Probably adjust the message format a little but I think it might provide some context when looking at the error logs so it's quite useful to have something like that |
From #41 (#41 (comment)), this is to track the issue separately from
ottoman
The text was updated successfully, but these errors were encountered: