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

Support for Aggregation Pipelines

Open em7 opened this issue 3 years ago • 0 comments

Hello, do you plan to add support for Aggregation Pipelines, please? https://docs.mongodb.com/manual/core/aggregation-pipeline/

If not, can I attempt to do it by myself and submit a PR?

It's not a total show stopper, you can still call an Aggregate Pipeline

(pp (iter (db.find "$cmd" (kv (kv "aggregate" "collection-name")
                              (kv "pipeline" (list (kv "$operator" "parameter")))
                              (kv "cursor" (kv nil nil))) )))

However I'd like to have a better way without making my own function/macro because it should be in the library IMO.

em7 avatar Jun 20 '21 12:06 em7