[SERVER-86376] The '.watch()' methods in mongo (legacy) shell modify the first argument Created: 07/Feb/24 Updated: 08/Feb/24 |
|
| Status: | Needs Scheduling |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Romans Kasperovics | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Operating System: | ALL |
| Participants: |
| 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. |