Parameters
- [pipeline] «Array»
- [options] «Object» passed without changes to
Returns:
- «ChangeStream» mongoose-specific change stream wrapper, inherits from EventEmitter
This function does not trigger any middleware. In particular, it does not trigger aggregate middleware.
- ‘error’: An unrecoverable error occurred. In particular, change streams currently error out if they lose connection to the replica set primary. Follow for updates.
- ‘end’: Emitted if the underlying stream is closed
- ‘close’: Emitted if the underlying stream is closed