Permalink
Browse files

Merge pull request #6 from duarten/master

Reduce bug solved
  • Loading branch information...
2 parents abea0e1 + 4536188 commit f83c937c53009cdf7064458f14b4ca8e6d30ddbb @duarten duarten committed Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 06 - mongodb.md
View
@@ -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}})

0 comments on commit f83c937

Please sign in to comment.