Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11596

Docs for SERVER-34087: Add db.getMongo().watch() helper to watch all changes for the cluster

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Documentation Request Summary:

      This helper opens a change stream which will watch for all changes on any collection in the replica set or sharded cluster (see SERVER-34086, SERVER-34088). It optionally takes two arguments: a pipeline of transformations to perform on the stream of documents, and an object defining any additional aggregation parameters (see https://docs.mongodb.com/manual/reference/command/aggregate/#dbcmd.aggregate).

      Scope of changes:

      • new method page
      • update /changeStreams.txt page
      • reference/change-events
      • 4.0
      • 4.0-compat (in fcv section).

      Impact to other docs outside of this product:

      none but will need to see about driver examples

      MVP:

      Resources:

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 47 weeks, 1 day ago