Class ChangeStreamDocument<TDocument>
An output document from a $changeStream pipeline stage.
[BsonSerializer(typeof(ChangeStreamDocumentSerializer<>))]
public sealed class ChangeStreamDocument<TDocument> : BsonDocumentBackedClass
Type Parameters
TDocument
The type of the document.
- Inheritance
-
ChangeStreamDocument<TDocument>
- Inherited Members
Constructors
- ChangeStreamDocument(BsonDocument, IBsonSerializer<TDocument>)
Initializes a new instance of the ChangeStreamDocument<TDocument> class.
Properties
- Backing
Document Gets the backing document.
- Cluster
Time Gets the cluster time.
- Collection
Namespace Gets the namespace of the collection.
- Collection
Uuid Gets ui field from the oplog entry corresponding to the change event. Only present when the showExpandedEvents change stream option is enabled and for the following event types (MongoDB 6.0 and later):
- Database
Namespace Gets the database namespace.
- Disambiguated
Paths Gets the disambiguated paths if present.
- Document
Key Gets the document key.
- Full
Document Gets the full document.
- Full
Document Before Change Gets the full document before change.
- Operation
Description Gets the description for the operation. Only present when the showExpandedEvents change stream option is enabled and for the following event types (MongoDB 6.0 and later):
- Operation
Type Gets the type of the operation.
- Rename
To Gets the new namespace for the ns collection. This field is omitted for all operation types except "rename".
- Resume
Token Gets the resume token.
- Split
Event Gets the split event.
- Update
Description Gets the update description.
- Wall
Time Gets the wall time of the change stream event.