Class ChangeStreamDocument
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
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
Inherited Members
Constructors
ChangeStreamDocument(BsonDocument, IBsonSerializer)
Initializes a new instance of the ChangeStreamDocument class.
Properties
Gets the backing document.
Gets the cluster time.
Gets the namespace of the collection.
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):
- Create
- CreateIndexes
- Delete
- Drop
- DropIndexes
- Insert
- Modify
- RefineCollectionShardKey
- ReshardCollection
- ShardCollection
- Update
Gets the database namespace.
Gets the disambiguated paths if present.
Gets the document key.
Gets the full document.
Gets the full document before change.
The type of the newly created object. Only present when the showExpandedEvents change stream option is enabled and for the following event types (MongoDB 8.1 and later):
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):
- Create
- CreateIndexes
- DropIndexes
- Modify
- RefineCollectionShardKey
- Rename
- ReshardCollection
- ShardCollection
Gets the type of the operation.
Gets the new namespace for the ns collection. This field is omitted for all operation types except "rename".
Gets the resume token.
Gets the split event.
Gets the update description.
Gets the wall time of the change stream event.