The parent object that created this change stream
An array of aggregation pipeline stages through which to pass change stream documents
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.
Sets or gets the default captureRejection value for all emitters.
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.
Is the cursor closed
The cached resume token that is used to resume after the most recently returned change.
Close the Change Stream
Check if there is any document still available in the Change Stream
Get the next available document from the Change Stream.
Return a modified Readable stream including a possible transform method.
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
Creates a new Change Stream instance. Normally created using {@link Collection#watch|Collection.watch()}.