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
Hey @EliKrumholz, so mutating the underlying schema after the Thing model has been created by mongoose.model() isn't a supported behavior. Make sure you define all your hooks before calling mongoose.model().
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Mongoose >=4.8.0 is not running post middleware in the following case.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Mongoose 4.7.9 logs
test event emitted
to the console, as expected.Mongoose >=4.8.0 does not.
Please mention your node.js, mongoose and MongoDB version.
Node: 6.9.5
Mongoose: 4.8.1
MongoDB: 3.2.10
The text was updated successfully, but these errors were encountered: