florinv Posted April 4, 2012 Share Posted April 4, 2012 I'm trying to use a mongodb group query in a report and I can't get it to work.Any thoughts? Thanks!Code:db.sessionEvent.group({ key : {name: true, user: true}, initial : {count:0}, reduce : function Reduce(doc, out) { out.count ++; }, finalize : function Finalize(out) { return out;}}) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now