Skip to content

MongoDB mixin: add aggregate to available methods #36

@PuKoren

Description

@PuKoren

Hello there!

It would be super-great to be able to aggregate using the pump, sample:

pump
  .mixin(MongodbMixin('mongodb://localhost/myDB'))
  .useCollection('myCollection')
  .from(pump.aggregate([{ $group: { _id: '$geo.country', sum: { $sum: 1} }}, {$sort: { 'sum': -1}}]))

I don't know coffee, would it be hard to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions