Mongoose does not clean up modified paths of nested properties and array elements within the nested property after save #13609
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Prerequisites
Mongoose version
7.3.3
Node.js version
16.18.1
MongoDB server version
4.4
Typescript version (if applicable)
5.1
Description
Mongoose does not clean up modified paths of nested properties and array elements within the nested property after save. It's similar to #13582, only in this case this is nested property with schema that is misbehaving.
Steps to Reproduce
Expected Behavior
Nested property
modifiedPaths()
call properly returns[]
. Nested property subproperty that is defined as documents array call tomodifiedPaths()
also properly returns[]
as a result.The text was updated successfully, but these errors were encountered: