Type alias BaseChangeEvent<T>

BaseChangeEvent<T>: {
    _id: ChangeEventId;
    clusterTime: Timestamp;
    lsid?: Record<string, unknown>;
    operationType: T;
    txnNumber?: Long;
}

A base change event containing the properties which apply across operation types.

Type Parameters

Type declaration

  • _id: ChangeEventId

    The ID of the change event.

  • clusterTime: Timestamp

    The timestamp from the oplog entry associated with the event.

  • Optional lsid?: Record<string, unknown>

    The identifier for the session associated with the transaction. Only present if the operation is part of a multi-document transaction.

  • operationType: T

    The type of operation which was performed on the document.

  • Optional txnNumber?: Long

    The transaction number. Only present if the operation is part of a multi-document transaction.

Generated using TypeDoc