Mongodb – How to add a key in a mongo document on the basis of an existing key?
I have a document as follows: { "_id": "1234", "created_at": 1678787680 } I want to modify the document and add a new key updated_at which will be a datetime equivalent of the created_at UNIX timestamp. { "_id": "1234", "created_at": 1678787680,…