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
Do you want to request a feature or report a bug?
bug
What is the current behavior?
doc.isModified() is incorrectly returning false when a subdocument is modified under an array with _id disabled and when the array is completely assigned to a value that is identical, but then later an array member is changed.
See REQUIREMENT 1 and REQUIREMENT 2 below.
If the current behavior is a bug, please provide the steps to reproduce.
Run the script below: npx ts-node scripts/mongoose.ts
Do you want to request a feature or report a bug?
bug
What is the current behavior?
doc.isModified()
is incorrectly returning false when a subdocument is modified under an array with_id
disabled and when the array is completely assigned to a value that is identical, but then later an array member is changed.See REQUIREMENT 1 and REQUIREMENT 2 below.
If the current behavior is a bug, please provide the steps to reproduce.
Run the script below:
npx ts-node scripts/mongoose.ts
Script.ts:
What is the expected behavior?
modifiedPaths()
should reflect the change after thematch.value = 43;
lineisModified()
should be true after thematch.value = 43;
lineWhat are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 6.1.4, node v12.22.7, mongo v4.2.8
The text was updated successfully, but these errors were encountered: