Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from duarten/master

Reduce bug solved
  • Loading branch information...
commit f83c937c53009cdf7064458f14b4ca8e6d30ddbb 2 parents abea0e1 + 4536188
@duarten duarten authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  06 - mongodb.md
View
2  06 - mongodb.md
@@ -184,7 +184,7 @@ var reduce = function(key, values) {
sum += value.count;
});
- return sum;
+ return {count: sum};
}
db.blog.mapReduce(map, reduce, {out: {inline: 1}})
Please sign in to comment.
Something went wrong with that request. Please try again.