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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • v1.3.8
    • None
    • manual

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

      Attachments

        Activity

          People

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

            Dates

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