Iridium icon indicating copy to clipboard operation
Iridium copied to clipboard

Pass Options to aggregate

Open acuntex opened this issue 7 years ago • 4 comments

According to the MongoDB Documentation (https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/) aggregate supports an option object.

As far as I can see, this is currently not supported in Iridium.

Is there a chance, this feature gets implemented? (Interesting for collation, e.g. if you have a case-insensitive index, otherwise it would not use the index.)

acuntex avatar Dec 08 '17 11:12 acuntex

Hi @acuntex, I'll certainly add that functionality. At the moment I'm travelling for business, but as soon as I have a chance I will do so.

notheotherben avatar Dec 08 '17 17:12 notheotherben

I've just pushed 8.0.0-alpha.7 which includes support for passing the options argument to your aggregate method. Please let me know if you run into any issues with it.

notheotherben avatar Dec 26 '17 11:12 notheotherben

Where is examples and documentation how to use aggregate method in Iridium?

PinnacleOne avatar Jan 08 '18 08:01 PinnacleOne

The way it works is identical to the official MongoDB driver, your best bet for documentation and examples is their official docs on the subject. Please let me know if you run into any issues or have any other questions.

notheotherben avatar Jan 13 '18 20:01 notheotherben