Check if there is any document still available in the Change Stream
Get the next available document from the Change Stream.
Try to get the next available document from the Change Stream's cursor or null
if an empty batch is returned
Close the Change Stream
Return a modified Readable stream including a possible transform method.
NOTE: When using a Stream to process change stream events, the stream will NOT automatically resume in the case a resumable error is encountered.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Sets or gets the default captureRejection value for all emitters.
Fired for each new matching change in the specified namespace. Attaching a change
event listener to a Change Stream will switch the stream into flowing mode. Data will
then be passed as soon as it is available.
Emitted each time the change stream stores a new resume token.
The cached resume token that is used to resume after the most recently returned change.
Is the cursor closed
Generated using TypeDoc
Creates a new Change Stream instance. Normally created using {@link Collection#watch|Collection.watch()}.