Click or drag to resize

AggregateFluentBase<TResult>.ChangeStream Method

Appends a $changeStream stage to the pipeline. Normally you would prefer to use the Watch method of IMongoCollection<TDocument>. 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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public virtual IAggregateFluent<ChangeStreamDocument<TResult>> ChangeStream(
	ChangeStreamStageOptions options = null
)

Parameters

options (Optional)
Type: MongoDB.Driver.ChangeStreamStageOptions
The options.

Return Value

Type: IAggregateFluent<ChangeStreamDocument<TResult>>
The fluent aggregate interface.

Implements

IAggregateFluent<TResult>.ChangeStream(ChangeStreamStageOptions)
See Also