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() }}
- depends on
-
DRIVERS-121 support new update operators
- Closed
- is duplicated by
-
SERVER-1650 Server Side Timestamps
- Closed
-
SERVER-2064 $sysdate for inserts/updates
- Closed
-
SERVER-10123 Support Timestamp(0,0) server replace for update (mods)
- Closed