Click or drag to resize

AggregateFluentBaseTResultChangeStream Method

Appends a $changeStream stage to the pipeline. Normally you would prefer to use the Watch method of IMongoCollectionTDocument. Only use this method if subsequent stages project away the resume token (the _id) or you don't want the resulting cursor to automatically resume.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public virtual IAggregateFluent<ChangeStreamDocument<TResult>> ChangeStream(
	ChangeStreamStageOptions options = null
)

Parameters

options (Optional)
Type: MongoDB.DriverChangeStreamStageOptions
The options.

Return Value

Type: IAggregateFluentChangeStreamDocumentTResult
The fluent aggregate interface.

Implements

IAggregateFluentTResultChangeStream(ChangeStreamStageOptions)
See Also