mongodb-haskell/mongodb

Aggregate support for MongoDB >= 2.6

Closed this issue · 5 comments

spl commented

In MongoDB 2.6, aggregate was changed to return a cursor instead of an array of all results. I created a test (#15) to see if the current implementation of aggregate worked for 2.6, and I was surprised to discover that it did. Is this to be expected? Should a new version of aggregate be created for working with a cursor?

Are you running 2.6 then? What is Travis running?

spl commented

Are you running 2.6 then?

We're working on switching to it. I tried 2.6 locally on my Mac via Homebrew.

What is Travis running?

Good question. I don't know, and I don't see it here.

looks like 2.4. That is good: it will make sure we maintain backwards compatibility.

@spl, what was changed is the command line interface for mongo db. The haskell driver uses the mongodb wired protocol for communication with the server. The protocol hasn't changed. I assume we can close this issue. If I misunderstood something please reopen it.

spl commented

@VictorDenisov Apologies for the delayed response. I agree. It wasn't an issue.