File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,15 @@ Watch for Changes
77Open a Change Stream
88--------------------
99
10- You can watch for changes to a single collection, a database, or an entire deployment in MongoDB with **Change Streams**.
11- Open a change stream by calling the ``watch()`` method on a ``Collection``, ``Db``, or ``MongoClient`` object. The
12- change stream emits **change event** documents when they occur.
10+ You can watch for changes in MongoDB using the ``watch()`` method on the
11+ following objects:
12+
13+ - `Collection <{+api+}/classes/Collection.html#watch>`__
14+ - `Database <{+api+}/classes/Db.html#watch>`__
15+ - `MongoClient <{+api+}/classes/MongoClient.html#watch>`__
16+
17+ For each object, the ``watch()`` method opens a **change stream** to
18+ emit **change event** documents when they occur.
1319
1420The ``watch()`` method optionally takes an **aggregation pipeline** which consists of an array of **aggregation stages**
1521as the first parameter. The aggregation stages filter and transform the change events.
You can’t perform that action at this time.
0 commit comments