Add $currentDate update modifier

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Write Ops
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add a new update modifier where the server will fill in the date/timestamp:

      Usage:

      update({}, {$currentDate: { 
          field : true, //new Date()
          field1: {$type: "date"}, //new Date()
          field2: {$type: "timestamp"} //new Timestamp()
       }}
      

              Assignee:
              Gregory McKeon (Inactive)
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: