-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
Hello, I hope you are doing well
I wanted to add "created_at" and "updated_at" fields to my documents. So I searched for solutions. I ended up implementing something like:
document.insert("created_at", chrono::Utc::now());
but in my db, it is saved as string, I wanted to save it in ISODate format.
I failed to find an example which saves date as ISODate, so I wanted to ask you.
It would be great if there was an option for handling "created_at" and "updated_at" fields as default by the driver.
Thanks for your contributions. Take care.