DEV Community

Discussion on: The pain of aggregations in MongoDB Compass

Collapse
 
cheetah100 profile image
Peter Harrison

Coding a aggregation from the ground up is a painful experience. My own approach was to have a runtime schema defined, and then to use a UI to configure the transformation. My app then translates the transform and associated schema into an aggregation to run. The code behind this is in serious need of a refactor, but the principle works very well. The focus here is on users being able to easily configure queries. You are welcome to look at the code.