[DOCS-2898] Documentation for db.collection.mapReduce does not cover the return value Created: 11/Mar/14  Updated: 21/Jul/14  Resolved: 21/Jul/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.8

Type: Task Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Tim Slavin
Resolution: Done Votes: 0
Labels: sprint-rollover
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 30 weeks, 2 days ago

 Description   

The documentation for db.collection.mapReduce (http://docs.mongodb.org/manual/reference/method/db.collection.mapReduce/#db-collection-mapreduce) does not explain the return value from the function, which is a JSON document with the following fields (the descriptions are not exhaustive and need to be cross-checked with the code):

{
    "result" : "<where the result is written>",
    "timeMillis" : <how long it took>,
    "counts" : {
        "input" : <how many times was map called>,
        "emit" : <how many times was emit called>,
        "reduce" : <how many times was reduce called>,
        "output" : <how many values were produced>
    },
    "ok" : <success or not>
}



 Comments   
Comment by Githook User [ 21/Jul/14 ]

Author:

{u'username': u'TimSlavinMongoDB', u'name': u'Tim Slavin (MongoDB)', u'email': u'tim.slavin@10gen.com'}

Message: DOCS-2898: Document db.collection.mapReduce return values

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/bd1565ebc3aa6f6d819ce2629a912bb4e53c7f43

Generated at Thu Feb 08 07:44:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.