Click or drag to resize

PipelineStageDefinitionBuilderChangeStreamTInput Method

Creates a $changeStream stage. 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.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public static PipelineStageDefinition<TInput, ChangeStreamDocument<TInput>> ChangeStream<TInput>(
	ChangeStreamStageOptions options = null
)

Parameters

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

Type Parameters

TInput
The type of the input documents.

Return Value

Type: PipelineStageDefinitionTInput, ChangeStreamDocumentTInput
The stage.
See Also