-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updatedAt not updated when i do some updated to document #13
Comments
It's actually impossible to hook middleware onto This means that no plugin is actually run when using any of these functions. Check out the notes section in the Mongoose documentation for middleware. Issue Automattic/mongoose#964 also describes this. |
You could do this instead:
|
any idea what was causing this (dates not updating on "update" command)? I'm getting this too... |
Why this is closed? It is actually a huge issue developers facing right now |
when i do update to docement, field
updatedAt
not updated with current Date time.example my query
The text was updated successfully, but these errors were encountered: