Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2898

Documentation for db.collection.mapReduce does not cover the return value

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.3.8
    • Affects Version/s: None
    • Component/s: manual
    • Labels:

      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>
      }
      

            Assignee:
            tim.slavin Tim Slavin
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 41 weeks, 2 days ago