Skip to content

Commit 1b54292

Browse files
committed
Merge pull request #690
2 parents f20b14b + e68ddc5 commit 1b54292

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

source/includes/apiargs-MongoDBCollection-method-mapReduce-option.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ name: finalize
1313
type: :php:`MongoDB\\BSON\\Javascript <class.mongodb-bson-javascript>`
1414
description: |
1515
Follows the reduce method and modifies the output.
16+
17+
.. note::
18+
19+
Passing a Javascript instance with a scope is deprecated. Put all scope
20+
variables in the ``scope`` option of the MapReduce operation.
1621
interface: phpmethod
1722
operation: ~
1823
optional: true

source/includes/apiargs-MongoDBCollection-method-mapReduce-param.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ type: :php:`MongoDB\\BSON\\Javascript <mongodb-bson-javascript>`
44
description: |
55
A JavaScript function that associates or "maps" a value with a key and emits
66
the key and value pair.
7+
8+
.. note::
9+
10+
Passing a Javascript instance with a scope is deprecated. Put all scope
11+
variables in the ``scope`` option of the MapReduce operation.
712
interface: phpmethod
813
operation: ~
914
optional: false
@@ -14,6 +19,11 @@ type: :php:`MongoDB\\BSON\\Javascript <class.mongodb-bson-javascript>`
1419
description: |
1520
A JavaScript function that "reduces" to a single object all the values
1621
associated with a particular key.
22+
23+
.. note::
24+
25+
Passing a Javascript instance with a scope is deprecated. Put all scope
26+
variables in the ``scope`` option of the MapReduce operation.
1727
interface: phpmethod
1828
operation: ~
1929
optional: false

0 commit comments

Comments
 (0)