The problem

An enterprise product platform keeps each customer's data in its own database. Reports had to combine it across several levels, with conditions that differ per customer.

What I did

  • Wrote MongoDB aggregation pipelines with multi-level conditions and lookups across customer databases
  • Built report templates that generate documents for each customer's instance
  • Extended the platform with plugins for customers' data workflows

From separate databases to one report.

  1. Customer databasesOne per customer
  2. Aggregation pipelineMulti-level conditions and lookups
  3. Report templatejsreport
  4. Generated documentFor each customer's instance
Each customer's data lives in its own database. Aggregation pipelines combine it with conditions per customer, and a template turns the result into a document.

Need the same?