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

Server Side Timestamps

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Write Ops
    • None

    Description

      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' }

      })

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: