Details
-
Bug
-
Resolution: Unresolved
-
Minor - P4
-
None
-
None
-
None
-
Query Execution
-
ALL
Description
DBCollection.prototype.watch, DB.prototype.watch and Mongo.prototype.watch are mongo (legacy) shell helper functions wrapping change stream aggregation pipeline. These functions however, modify their first arguments (the pipeline) by prepending the $changeStream stage, implying that it cannot be re-used by the caller, which is sometimes annoying.