Mongodb – How to add timestamp to already existing objects using a value within the object?
I have a MongoDb database with around 1000 records, I had the timestamp option set to false and none of them has the createdAt and updatedAt attributes. Now i've set the timestamp to true and I want to update all…