You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very strange that $__reset(), which should reset a document to a "nothing modified" state, relies on marking subdocuments as init. This popped up in #11672, and this behavior may be hiding other bugs. No concrete issues right now, more of a note to self to investigate further.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Potential bug/issue
What is the current behavior?
It is very strange that
$__reset()
, which should reset a document to a "nothing modified" state, relies on marking subdocuments asinit
. This popped up in #11672, and this behavior may be hiding other bugs. No concrete issues right now, more of a note to self to investigate further.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: