Expand description
MongoDB change stream event types.
Represents the structure of change events emitted by MongoDB change
streams. Maps MongoDB’s change event document structure to typed Rust
structs for safe downstream processing.
§Operation Types
MongoDB change streams emit events for the following operations:
insert— new document created;full_documentalways presentupdate— document modified;update_descriptioncontains deltareplace— full document replacementdelete— document removed; onlydocument_keypresentdrop— collection dropped (lifecycle event)rename— collection renamed (lifecycle event)invalidate— stream invalidated; must restart withstartAfter
Structs§
- Mongo
DbChange Event - A change event from a
MongoDBchange stream. - Namespace
- The namespace (database + collection) for a change event.
- Truncated
Array - Describes a truncated array in an update operation (
MongoDB6.0+). - Update
Description - Describes the fields changed during an
updateoperation.
Enums§
- Operation
Type - The type of operation described by a change event.