Change Stream Flow
Flow implementation for change streams.
Note: the ChangeStreamDocument class will not be applicable for all change stream outputs. If using custom pipelines that radically change the result, then the withDocumentClass method can be used to provide an alternative document format.
Parameters
The type of the result.
Functions
Sets the number of documents to return per batch.
Sets the collation options
Sets the comment for this operation. A null value means no comment is set.
Sets the fullDocument value.
Sets the fullDocumentBeforeChange value.
Sets the maximum await execution time on the server for this operation.
Sets the logical starting point for the new change stream.
Sets whether to include expanded change stream events, which are: createIndexes, dropIndexes, modify, create, shardCollection, reshardCollection, refineCollectionShardKey. False by default.
Similar to resumeAfter
, this option takes a resume token and starts a new change stream returning the first notification after the token.
The change stream will only provide changes that occurred at or after the specified timestamp.
Returns a MongoIterable
containing the results of the change stream based on the document class provided.