Open sfhorton01 opened 8 years ago
Unfortunately the .group()
method is not wrapped in the pump. A quick workaround could be to call group on mongo collection directly:
eventsPump._mongo.collection.group(<your args here>).stream()
Please note the stream()
call after grouping. Input buffers of pumps must be streams, arrays or datapumps Buffers.
Is it possible to do the same for aggregation?
eventsPump._mongo.collection.aggregate(<your args here>).stream()
This should work .aggregate
too. But the method will only exist in .from
call if the mixin receives a mongodb connection, not a connection string.
When using the MongoDbMixin to read data, I need to be able to perform a group or aggregate first. So what I have is something like:
However, I am getting an error on the .from line:
Am I doing something wrong? Or is this not really supported?