Hello everyone! I am looking for the ability to automatically update the date and time field (updatedAt) in MongoDB when any field in the document is changed. That is, I need something like “ON UPDATE CURRENT_TIMESTAMP” in MySQL.
Please tell me how to accomplish this task in MongoDB!
Thanks in advanced!