Skip to content

Commit 499ae61

Browse files
committed
DOCS-864 map reduce syntax format
1 parent e78166f commit 499ae61

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

source/applications/map-reduce.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ shell using the :method:`db.collection.mapReduce()` method:
2323
.. code-block:: javascript
2424

2525
db.collection.mapReduce(
26-
<map>,
27-
<reduce>,
26+
<mapfunction>,
27+
<reducefunction>,
2828
{
29-
<out>,
30-
<query>,
31-
<sort>,
32-
<limit>,
33-
<finalize>,
34-
<scope>,
35-
<jsMode>,
36-
<verbose>
29+
out: <collection>,
30+
query: <document>,
31+
sort: <document>,
32+
limit: <number>,
33+
finalize: <function>,
34+
scope: <document>,
35+
jsMode: <boolean>,
36+
verbose: <boolean>
3737
}
3838
)
3939

source/reference/command/mapReduce.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ mapReduce
1515

1616
db.runCommand(
1717
{
18-
mapReduce: '<collection>',
19-
map: <map>,
20-
reduce: <reduce>,
21-
out: <out>,
22-
query: <query>,
23-
sort: <sort>,
24-
limit: <limit>,
25-
finalize: <finalize>,
26-
scope: <scope>,
27-
jsMode: <jsMode>,
28-
verbose: <verbose>
18+
mapReduce: <collection>,
19+
map: <function>,
20+
reduce: <function>,
21+
out: <collection>,
22+
query: <document>,
23+
sort: <document>,
24+
limit: <number>,
25+
finalize: <function>,
26+
scope: <document>,
27+
jsMode: <boolean>,
28+
verbose: <boolean>
2929
}
3030
)
3131

source/reference/method/db.collection.mapReduce.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ db.collection.mapReduce()
1212
.. code-block:: javascript
1313

1414
db.collection.mapReduce(
15-
<map>,
16-
<reduce>,
15+
mapfunction,
16+
reducefunction,
1717
{
18-
<out>,
19-
<query>,
20-
<sort>,
21-
<limit>,
22-
<finalize>,
23-
<scope>,
24-
<jsMode>,
25-
<verbose>
18+
out: <collection>,
19+
query: <document>,
20+
sort: <document>,
21+
limit: <number>,
22+
finalize: <function>,
23+
scope: <document>,
24+
jsMode: <boolean>,
25+
verbose: <boolean>
2626
}
2727
)
2828

0 commit comments

Comments
 (0)