Skip to content

Commit 3ad34ac

Browse files
author
Kay Kim
committed
DOCS-12086: 4.2 view and out restriction - explicitly mention nested pipelines (revert the revert but fix docs number)
This reverts commit 2e963f1.
1 parent 2e963f1 commit 3ad34ac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

source/includes/extracts-views.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,9 @@ ref: views-restriction-out
176176
content: |
177177
178178
Starting in MongoDB 4.2, the view definition ``pipeline`` cannot
179-
include the :pipeline:`$out` stage.
179+
include the :pipeline:`$out` stage. If the view definition includes
180+
nested pipeline (e.g. the view definition includes
181+
:pipeline:`$lookup` or :pipeline:`$facet` stage), this
182+
:pipeline:`$out` stage restriction applies to the nested pipelines
183+
as well.
180184
...

source/reference/operator/aggregation/out.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ Views
308308
.. versionadded:: 4.2
309309

310310
The :pipeline:`$out` stage is not allowed as part of a :doc:`view
311-
definition </core/views>`.
311+
definition </core/views>`. If the view definition includes nested
312+
pipeline (e.g. the view definition includes :pipeline:`$lookup` or
313+
:pipeline:`$facet` stage), this :pipeline:`$out` stage restriction
314+
applies to the nested pipelines as well.
312315

313316
``linearizable`` Read Concern
314317
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)