promised-mongo icon indicating copy to clipboard operation
promised-mongo copied to clipboard

Align aggregate api with mongo docs without breaking

Open miccarr opened this issue 7 years ago • 1 comments

Changes the db.collection.aggregate() api to accept both the custom aggregate( step1, step2, …) and the official mongo aggregate( pipeline, options ) notations.

The aggregate() should accept the pipeline as a string, allowing to pass options object. Does the same as #41 , but keeping compatibility with current notation.

Mongo docs for reference: https://docs.mongodb.org/manual/reference/method/db.collection.aggregate/

miccarr avatar May 10 '17 09:05 miccarr

This merge would be so welcomed. Is actually promised-mongo abandoned?

jordymeow avatar Oct 10 '17 07:10 jordymeow