rousseau Posted May 21, 2012 Share Posted May 21, 2012 Not sure if I've got the syntax quite right, but i'm just trying to do a simple grouping using the MongoDbQuery driver in iReport: e.g. to count the number of times something crashed for a particular reason {runCommand : { aggregate : 'crashlog', pipeline : [{ $group : { _id : "$data.reason", count : { $sum : 1} } }] }} This gives the error: "Error: no such cmd: aggregate". I'm using the latest mongodb driver (0.5.0)./Steve Link to comment Share on other sites More sharing options...
rousseau Posted May 21, 2012 Author Share Posted May 21, 2012 Well I think I figured out the reason: its only supported in a newer version of the DB. Looks like we need to upgrade. 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