{ "status": "delivered" }{ "_id": "$customerId", "total": { "$sum": "$total" } }{ "total": -1 }3// Result: 3 documents
[
{ "_id": "CUST-202", "total": 286.95 },
{ "_id": "CUST-201", "total": 285.94 },
{ "_id": "CUST-205", "total": 135.97 }
]Built for developers learning MongoDB and engineers preparing for interviews.
Visually construct pipelines by dragging stages like $match, $group, $project. Reorder with a single drag.
Run your pipeline against built-in sample datasets instantly. See stage-by-stage document counts and execution time.
8+ curated aggregation problems from Easy to Hard. Hints, solutions, and direct links to open in the playground.
E-commerce orders, social media posts, and employee directory — rich, realistic data designed for learning.
Each pipeline stage gets a full Monaco editor with JSON syntax highlighting. The same editor as VS Code.
One click to see the generated MongoDB pipeline JSON. Copy it straight into your application code.
Start free. Upgrade when you need more.