Skip to content

DOCS-10648: Clarify that bypassDocumentValidation does not apply for … #3208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion source/includes/apiargs-command-mapReduce-field.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ name: verbose
operation: mapReduce
optional: true
position: 10
type: Boolean
type: boolean
---
name: bypassDocumentValidation
source:
Expand All @@ -169,6 +169,16 @@ interface: command
position: 11
replacement:
verb: "insert"
post: |
.. note::

If the :ref:`output option <mapreduce-out-cmd>` is set to
``inline``, no :doc:`document validation
</core/schema-validation/>` occurs. If the output goes to
a collection, :dbcommand:`mapReduce` observes any validation
rules which the collection has and does not insert any invalid
documents unless the ``bypassDocumentValidation`` parameter is
set to true.
---
arg_name: field
operation: mapReduce
Expand Down
2 changes: 1 addition & 1 deletion source/includes/apiargs-dbcommand-insert-field.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ description: |
Enables {{role}} to bypass document validation
during the operation. This lets you {{verb}} documents that do not
meet the validation requirements.

.. versionadded:: 3.2
interface: dbcommand
operation: insert
Expand Down