summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/map_reduce.idl
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2019-12-17 21:12:55 +0000
committerevergreen <evergreen@mongodb.com>2019-12-17 21:12:55 +0000
commitff8bc31e9b64b2ecc68ad4952cd108d2284b6861 (patch)
tree04ad46c59b784ddf5b89fce1c5c152b24bdb8c6a /src/mongo/db/commands/map_reduce.idl
parent1cace75040174b743990435cdea3400e7c21dce3 (diff)
downloadmongo-ff8bc31e9b64b2ecc68ad4952cd108d2284b6861.tar.gz
SERVER-45105 Keep allowing scope and finalize to be explicit null in mapReduce command
Diffstat (limited to 'src/mongo/db/commands/map_reduce.idl')
-rw-r--r--src/mongo/db/commands/map_reduce.idl19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/mongo/db/commands/map_reduce.idl b/src/mongo/db/commands/map_reduce.idl
index 8c16042bf45..6c89d81d34a 100644
--- a/src/mongo/db/commands/map_reduce.idl
+++ b/src/mongo/db/commands/map_reduce.idl
@@ -52,6 +52,13 @@ types:
serializer: mongo::MapReduceJavascriptCode::serializeToBSON
deserializer: mongo::MapReduceJavascriptCode::parseFromBSON
+ mapReduceJavascriptCodeNullPermittedType:
+ bson_serialization_type: any
+ description: "Holds Javascript code passed as command input, but also accepts null"
+ cpp_type: "mongo::MapReduceJavascriptCodeOrNull"
+ serializer: mongo::MapReduceJavascriptCodeOrNull::serializeToBSON
+ deserializer: mongo::MapReduceJavascriptCodeOrNull::parseFromBSON
+
mapReduceGlobalVariableScopeType:
bson_serialization_type: any
description: "Holds a mapping of Javascript global variables"
@@ -67,11 +74,11 @@ commands:
strict: true
fields:
map:
- description: "Javascript code to run as the map operation which associates a value
+ description: "Javascript code to run as the map operation which associates a value
with a key and emits the key and value pair."
type: mapReduceJavascriptCodeType
reduce:
- description: "Javascript code to run as the map operation which reduces all the
+ description: "Javascript code to run as the map operation which reduces all the
values associated with a particular key to a single value."
type: mapReduceJavascriptCodeType
out:
@@ -79,7 +86,7 @@ commands:
type: mapReduceOutOptionsType
cpp_name: outOptions
query:
- description: "Query object in match language to use as a filter applied before the
+ description: "Query object in match language to use as a filter applied before the
map step."
type: object
optional: true
@@ -97,19 +104,19 @@ commands:
optional: true
finalize:
description: "Javascript code to run after the reduce operation."
- type: mapReduceJavascriptCodeType
+ type: mapReduceJavascriptCodeNullPermittedType
optional: true
scope:
description: "Javascript global variable mapping for map, reduce and finalize."
type: mapReduceGlobalVariableScopeType
optional: true
verbose:
- description: "Specifies whether to include the timing information in the result
+ description: "Specifies whether to include the timing information in the result
information."
type: bool
optional: true
bypassDocumentValidation:
- description: "Causes the out portion of the operation to ignore the output
+ description: "Causes the out portion of the operation to ignore the output
collection's document validation."
type: bool
optional: true