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?
UpdateWithAggregationPipeline ignores the custom timestamps in schema and creates updatedAt field instead of updating updated_at
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
It should update only updated_at field instead of creating updatedAt as in the schema.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js: 14.17.6
Mongoose: 5.13.14
MongoDB: 4.4.10
The text was updated successfully, but these errors were encountered:
I had to comment out one of the assertions for the whole test to run. The reporter is using mongoose 5.13.14 however this still persists on the latest version of mongoose. Furthermore, on version 5 the commented out assertion passes while on version 6 it fails. For some reason, the filter is being ignored and returning the only document in the database. I logged the result to see if there was an updatedAt property and none exists but for some reason it still returns the document. THe second assertion is correct in that it should be failing as an updatedAt property is being added on top of the updated_at property the user added. Interestingly, they are not the same time.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
UpdateWithAggregationPipeline ignores the custom timestamps in schema and creates updatedAt field instead of updating updated_at
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
It should update only updated_at field instead of creating updatedAt as in the schema.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js: 14.17.6
Mongoose: 5.13.14
MongoDB: 4.4.10
The text was updated successfully, but these errors were encountered: