The id functions as an opaque token for use when resuming an interrupted change stream.
The timestamp from the oplog entry associated with the event. For events that happened as part of a multi-document transaction, the associated change stream notifications will have the same clusterTime value, namely the time when the transaction was committed. On a sharded cluster, events that occur on different shards can have the same clusterTime but be associated with different transactions or even not be associated with any transaction. To identify events for a single transaction, you can use the combination of lsid and txnNumber in the change stream event document.
The UUID (Binary subtype 4) of the collection that the operation was performed on.
Only present when the showExpandedEvents
flag is enabled.
NOTE: collectionUUID will be converted to a NodeJS Buffer if the promoteBuffers flag is enabled.
The identifier for the session associated with the transaction. Only present if the operation is part of a multi-document transaction.
The "from" namespace that the rename occurred on
Describes the type of operation represented in this change notification
The new name for the ns.coll
collection
The transaction number. Only present if the operation is part of a multi-document transaction.
NOTE: txnNumber can be a Long if promoteLongs is set to false
Generated using TypeDoc
https://www.mongodb.com/docs/manual/reference/change-events/#rename-event