Method ChangeStream
ChangeStream<TInput>(ChangeStreamStageOptions)
Creates a $changeStream stage. 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.
public static PipelineStageDefinition<TInput, ChangeStreamDocument<TInput>> ChangeStream<TInput>(ChangeStreamStageOptions options = null)
Parameters
options
ChangeStreamStageOptionsThe options.
Returns
- PipelineStageDefinition<TInput, ChangeStreamDocument<TInput>>
The stage.
Type Parameters
TInput
The type of the input documents.