Skip to content

Commit f345cf1

Browse files
author
Dave
authored
DOCSP-18668 BACKPORT (#459)
1 parent 1a34ecc commit f345cf1

File tree

3 files changed

+16
-74
lines changed

3 files changed

+16
-74
lines changed

source/reference/method/Mongo.watch.txt

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,46 +32,29 @@ Definition
3232
.. list-table::
3333
:header-rows: 1
3434
:widths: 20 20 80
35-
35+
3636
* - Parameter
37-
3837
- Type
39-
4038
- Description
41-
39+
4240
* - ``pipeline``
43-
4441
- array
45-
46-
- :doc:`Aggregation pipeline </core/aggregation-pipeline>` consisting
47-
of one or more of the following aggregation stages:
42+
- Optional. An :ref:`aggregation-pipeline` consisting of one or
43+
more of the following aggregation stages:
4844

4945
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
5046

5147
Specify a pipeline to filter/modify the change events output.
5248

5349
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
54-
55-
56-
50+
5751
* - ``options``
58-
5952
- document
60-
6153
- Optional. Additional options that modify the behavior of
6254
:method:`Mongo.watch()`.
63-
64-
You must pass an empty array ``[]`` to the ``pipeline`` parameter if
65-
you are not specifying a pipeline but are passing the ``options``
66-
document.
67-
68-
69-
70-
7155

7256
The ``options`` document can contain the following fields and values:
7357

74-
7558
.. list-table::
7659
:header-rows: 1
7760
:widths: 20 20 80

source/reference/method/db.collection.watch.txt

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,67 +15,45 @@ Definition
1515

1616
.. method:: db.collection.watch( pipeline, options )
1717

18-
1918
.. include:: /includes/fact-mongosh-shell-method.rst
2019

21-
2220
*For replica sets and sharded clusters only*
2321

2422
Opens a :ref:`change stream cursor <changeStreams>` on the
2523
collection.
2624

27-
2825
.. list-table::
2926
:header-rows: 1
3027
:widths: 20 20 80
3128

3229
* - Parameter
33-
3430
- Type
35-
3631
- Description
37-
32+
3833
* - ``pipeline``
39-
4034
- array
41-
42-
- :doc:`Aggregation pipeline </core/aggregation-pipeline>` consisting
43-
of one or more of the following aggregation stages:
44-
35+
- Optional. An :ref:`aggregation-pipeline` consisting of one
36+
or more of the following aggregation stages:
37+
4538
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
46-
39+
4740
Specify a pipeline to filter/modify the change events output.
48-
41+
4942
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
50-
51-
52-
43+
5344
* - ``options``
54-
5545
- document
56-
5746
- Optional. Additional options that modify the behavior of
5847
:method:`~db.collection.watch()`.
59-
60-
You must pass an empty array ``[]`` to the ``pipeline`` parameter if
61-
you are not specifying a pipeline but are passing the ``options``
62-
document.
63-
64-
65-
66-
6748

6849
The ``options`` document can contain the following fields and values:
6950

70-
7151
.. list-table::
7252
:header-rows: 1
7353
:widths: 20 20 80
7454

7555
* - Field
76-
7756
- Type
78-
7957
- Description
8058

8159
* - ``resumeAfter``
@@ -198,7 +176,6 @@ Definition
198176

199177
:method:`db.watch()` and :method:`Mongo.watch()`
200178

201-
202179
Availability
203180
------------
204181

source/reference/method/db.watch.txt

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,50 +26,32 @@ Definition
2626
Opens a :ref:`change stream cursor <changeStreams>` for a database
2727
to report on all its non-``system`` collections.
2828

29-
3029
.. list-table::
3130
:header-rows: 1
3231
:widths: 20 20 80
33-
32+
3433
* - Parameter
35-
3634
- Type
37-
3835
- Description
39-
36+
4037
* - ``pipeline``
41-
4238
- array
43-
44-
- :doc:`Aggregation pipeline </core/aggregation-pipeline>` consisting
39+
- Optional. An :ref:`aggregation-pipeline` consisting
4540
of one or more of the following aggregation stages:
4641

4742
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
4843

4944
Specify a pipeline to filter/modify the change events output.
5045

5146
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
52-
53-
54-
47+
5548
* - ``options``
56-
5749
- document
58-
5950
- Optional. Additional options that modify the behavior of
6051
:method:`db.watch()`.
61-
62-
You must pass an empty array ``[]`` to the ``pipeline`` parameter if
63-
you are not specifying a pipeline but are passing the ``options``
64-
document.
65-
66-
67-
68-
6952

7053
The ``options`` document can contain the following fields and values:
7154

72-
7355
.. list-table::
7456
:header-rows: 1
7557
:widths: 20 20 80

0 commit comments

Comments
 (0)