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
vkarpov15
added
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
and removed
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
labels
Jul 28, 2021
Maybe I've found a new bug related to timestamps, like this one I've described recently.
Timestamps are not being created when I use
$setOnInsert
infindOneAndUpdate
.You can see here the code I've used to test it:
I've got the following output:
Is this a bug or an expected behaviour?
MongoDB: 4.4.6
Mongoose: 5.13.3
Node.js: v14.17.0
The text was updated successfully, but these errors were encountered: