MongoChange class

Constructors

MongoChange({required String operationType, required String collection, required String documentId, Map<String, dynamic>? doc, Map<String, dynamic>? updateDescription, required Map<String, dynamic> raw})
MongoChange.fromJson(Map<String, dynamic> json)
Creates a MongoChange instance from a raw JSON change payload.
factory

Properties

collection String
The collection where the change occurred.
final
doc Map<String, dynamic>?
The full document after the change (only present in some change types).
final
documentId String
The ID of the affected document.
final
hashCode int
The hash code for this object.
no setterinherited
isDelete bool
Whether this change event is a delete.
no setter
isDrop bool
Whether this change event is a drop (e.g. collection dropped).
no setter
isInsert bool
Whether this change event is an insert.
no setter
isInvalidate bool
Whether this change event is an invalidate (e.g. stream invalidated).
no setter
isReplace bool
Whether this change event is a replace.
no setter
isUpdate bool
Whether this change event is an update.
no setter
operationType String
The operation type as a string (e.g. "insert", "update", etc.)
final
raw Map<String, dynamic>
The raw payload of the change event.
final
removedFields List<String>?
Fields that were removed (only for update events).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MongoChangeType
The typed version of the operationType string.
no setter
updateDescription Map<String, dynamic>?
Details about the fields that were updated or removed (for updates).
final
updatedFields Map<String, dynamic>?
Fields that were updated (only for update events).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited