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

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Romans Kasperovics
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: