Optional finalizeOptional jsit is possible to make the execution stay in JS. Provided in MongoDB > 2.0.X default: false
Optional keeptempkeep temporary data default: false
Optional limitmax number of documents
Optional outsets the output target for the map reduce job. default: {inline: 1}
Optional inline?: numberthe results are returned in an array
Optional merge?: string{merge: 'collectionName'} add the results to collectionName: if dups exist the new docs overwrite the old
Optional reduce?: string{reduce: 'collectionName'} add the results to collectionName: if dups are detected, uses the reducer / finalize functions
Optional replace?: string{replace: 'collectionName'} add the results to collectionName: the results replace the collection
Optional queryquery filter object.
Optional readOptional scopescope variables exposed to map/reduce/finalize during execution
Optional sortsort input objects using this key
Optional verboseprovide statistics on job execution time. default: false
Generated using TypeDoc
finalize function