File tree Expand file tree Collapse file tree 3 files changed +16
-74
lines changed Expand file tree Collapse file tree 3 files changed +16
-74
lines changed Original file line number Diff line number Diff line change @@ -32,46 +32,29 @@ Definition
32
32
.. list-table::
33
33
:header-rows: 1
34
34
:widths: 20 20 80
35
-
35
+
36
36
* - Parameter
37
-
38
37
- Type
39
-
40
38
- Description
41
-
39
+
42
40
* - ``pipeline``
43
-
44
41
- 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:
48
44
49
45
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
50
46
51
47
Specify a pipeline to filter/modify the change events output.
52
48
53
49
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
54
-
55
-
56
-
50
+
57
51
* - ``options``
58
-
59
52
- document
60
-
61
53
- Optional. Additional options that modify the behavior of
62
54
: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
-
71
55
72
56
The ``options`` document can contain the following fields and values:
73
57
74
-
75
58
.. list-table::
76
59
:header-rows: 1
77
60
:widths: 20 20 80
Original file line number Diff line number Diff line change @@ -15,67 +15,45 @@ Definition
15
15
16
16
.. method:: db.collection.watch( pipeline, options )
17
17
18
-
19
18
.. include:: /includes/fact-mongosh-shell-method.rst
20
19
21
-
22
20
*For replica sets and sharded clusters only*
23
21
24
22
Opens a :ref:`change stream cursor <changeStreams>` on the
25
23
collection.
26
24
27
-
28
25
.. list-table::
29
26
:header-rows: 1
30
27
:widths: 20 20 80
31
28
32
29
* - Parameter
33
-
34
30
- Type
35
-
36
31
- Description
37
-
32
+
38
33
* - ``pipeline``
39
-
40
34
- 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
+
45
38
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
46
-
39
+
47
40
Specify a pipeline to filter/modify the change events output.
48
-
41
+
49
42
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
50
-
51
-
52
-
43
+
53
44
* - ``options``
54
-
55
45
- document
56
-
57
46
- Optional. Additional options that modify the behavior of
58
47
: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
-
67
48
68
49
The ``options`` document can contain the following fields and values:
69
50
70
-
71
51
.. list-table::
72
52
:header-rows: 1
73
53
:widths: 20 20 80
74
54
75
55
* - Field
76
-
77
56
- Type
78
-
79
57
- Description
80
58
81
59
* - ``resumeAfter``
@@ -198,7 +176,6 @@ Definition
198
176
199
177
:method:`db.watch()` and :method:`Mongo.watch()`
200
178
201
-
202
179
Availability
203
180
------------
204
181
Original file line number Diff line number Diff line change @@ -26,50 +26,32 @@ Definition
26
26
Opens a :ref:`change stream cursor <changeStreams>` for a database
27
27
to report on all its non-``system`` collections.
28
28
29
-
30
29
.. list-table::
31
30
:header-rows: 1
32
31
:widths: 20 20 80
33
-
32
+
34
33
* - Parameter
35
-
36
34
- Type
37
-
38
35
- Description
39
-
36
+
40
37
* - ``pipeline``
41
-
42
38
- array
43
-
44
- - :doc:`Aggregation pipeline </core/aggregation-pipeline>` consisting
39
+ - Optional. An :ref:`aggregation-pipeline` consisting
45
40
of one or more of the following aggregation stages:
46
41
47
42
.. include:: /includes/extracts/changestream-available-pipeline-stages.rst
48
43
49
44
Specify a pipeline to filter/modify the change events output.
50
45
51
46
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
52
-
53
-
54
-
47
+
55
48
* - ``options``
56
-
57
49
- document
58
-
59
50
- Optional. Additional options that modify the behavior of
60
51
: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
-
69
52
70
53
The ``options`` document can contain the following fields and values:
71
54
72
-
73
55
.. list-table::
74
56
:header-rows: 1
75
57
:widths: 20 20 80
You can’t perform that action at this time.
0 commit comments