Jump to content
We've recently updated our Privacy Statement, available here ×

MongoDB aggregate broken?


rousseau

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...