Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1650

Server Side Timestamps

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • None

      Currently the only way to set a timestamp when doing an update is to pass a date value from the client. It would be nice to have server side timestamps allowing you to do something similar to this:

      db.data.update(

      { _id : uuid }

      , { '$set' :

      { foo : 'bar', tsModified : '$now' }

      })

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            twhitton Travis Whitton
            Votes:
            25 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: