Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-86376

The '.watch()' methods in mongo (legacy) shell modify the first argument

    • 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.

            Assignee:
            vlad.dragutoiu@mongodb.com Vlad Dragutoiu (Inactive)
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: