Skip to content

Commit 06f47f5

Browse files
steverenkay-kim
authored andcommitted
DOCS-10648: Clarify that bypassDocumentValidation does not apply for mapReduce inline mode
1 parent 8ec6f58 commit 06f47f5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

source/includes/apiargs-command-mapReduce-field.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ name: verbose
158158
operation: mapReduce
159159
optional: true
160160
position: 10
161-
type: Boolean
161+
type: boolean
162162
---
163163
name: bypassDocumentValidation
164164
source:
@@ -169,6 +169,16 @@ interface: command
169169
position: 11
170170
replacement:
171171
verb: "insert"
172+
post: |
173+
.. note::
174+
175+
If the :ref:`output option <mapreduce-out-cmd>` is set to
176+
``inline``, no :doc:`document validation
177+
</core/schema-validation/>` occurs. If the output goes to
178+
a collection, :dbcommand:`mapReduce` observes any validation
179+
rules which the collection has and does not insert any invalid
180+
documents unless the ``bypassDocumentValidation`` parameter is
181+
set to true.
172182
---
173183
arg_name: field
174184
operation: mapReduce

source/includes/apiargs-dbcommand-insert-field.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ description: |
5050
Enables {{role}} to bypass document validation
5151
during the operation. This lets you {{verb}} documents that do not
5252
meet the validation requirements.
53-
53+
5454
.. versionadded:: 3.2
5555
interface: dbcommand
5656
operation: insert

0 commit comments

Comments
 (0)