[DOCS-11596] Docs for SERVER-34087: Add db.getMongo().watch() helper to watch all changes for the cluster Created: 13/Apr/18  Updated: 29/Oct/23  Resolved: 18/Jun/18

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-34087 Add db.getMongo().watch() helper to w... Closed
Related
related to DOCS-11525 Docs for SERVER-33918: Support $chang... Closed
related to DOCS-11617 Docs for SERVER-33999: Implement and ... Closed
is related to DOCS-11595 Docs for SERVER-34181: Expose the "ts... Closed
is related to DOCS-11597 Docs for SERVER-34086: Add ability to... Closed
Participants:
Days since reply: 5 years, 34 weeks, 2 days ago
Epic Link: DOCS: 4.0 Server

 Description   

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:



 Comments   
Comment by Githook User [ 18/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11596,DOCS-11525,DOCS-11595,DOCS-11602,DOCS-11617: db.watch() and Mongo.watch() and clusterTime in output, required privilege
Branch: master
https://github.com/mongodb/docs/commit/8558bf3cd716b5aa8b3b225764b9b3c77688c447

Generated at Thu Feb 08 08:03:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.