-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
Fully Compatible
-
ALL
-
QE 2024-04-15, QE 2024-07-08, QE 2024-07-22, QE 2024-08-05, QE 2024-08-19, QE 2024-09-02, QE 2024-09-16
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.