Table of Contents

Method ChangeStream

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

ChangeStream(ChangeStreamStageOptions)

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.

public virtual IAggregateFluent<ChangeStreamDocument<TResult>> ChangeStream(ChangeStreamStageOptions options = null)

Parameters

options ChangeStreamStageOptions

The options.

Returns

IAggregateFluent<ChangeStreamDocument<TResult>>

The fluent aggregate interface.