• Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 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.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            mehmetsefa2644@gmail.com Mehmet Sefa N/A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: