lastWrite property

Map? lastWrite
getter/setter pair

A document containing optime and date information for the database's most recent write operation.

  • hello.lastWrite.opTime An object giving the optime of the last write operation.
  • hello.lastWrite.lastWriteDate A date object containing the time of the last write operation.
  • hello.lastWrite.majorityOpTime An object giving the optime of the last write operation readable by majority reads.
  • hello.lastWrite.majorityWriteDate A date object containing the time of the last write operation readable by majority reads.

For details on the ok status field, the operationTime field, and the $clusterTime field, see Command Response.

Implementation

Map? lastWrite;