Aggregation pipelines

A MongoDB® aggregation pipeline builder that shows every stage.

A pipeline is easier to understand when you can see its intermediate results. Add stages, check their output, and switch to raw pipeline text whenever that suits the work.

Download for MacFree on the Mac App Store

Aggregation pipelines is part of the free app. macOS 15 or later.

  • Stage previews
  • Raw pipeline mode
  • Write confirmation
An aggregation pipeline with $match, $group, $project and $sort stages and a preview of the grouped results.An aggregation pipeline with $match, $group, $project and $sort stages and a preview of the grouped results.
The real app, with sample data.

Follow the transformation. Stage by stage.

Build a pipeline stage by stage and see the data change along the way.

Aggregation pipelines, in detail.

One stage at a time

A pipeline in Tallhorn is a list of stages. Each has an operator picker and its own editor. Add a stage, remove one, drag stages into a new order, or switch a stage off to see the pipeline without it.

Previews that tell you where it went wrong

As you work, Tallhorn runs the pipeline on a sample and shows how many documents come out of each stage. A filter that matches nothing, or a group that collapses too far, shows up at the stage that caused it.

If the server refuses a stage, its message appears under that stage and the stages after it are marked as not run. Previews wait until you stop typing, and you can cancel them.

Stages or text, whichever suits

Switch to text mode to edit the whole pipeline as one array, which is also the quickest way to paste a pipeline from your code. Switch back and the stages are there, including the ones you had switched off.

Writes never happen by accident

$out and $merge are never run by a preview. Running a pipeline that ends in one of them asks for confirmation first, and on a production connection you type the name of the collection that will be written to. Afterwards the status line names the collection that was written.

Run it, read it, explain it

Run the full pipeline into the results view and read it as a table, a tree or JSON. Allow disk use for large sorts and groups, and open Explain on the same pipeline to see the plan MongoDB chose.

How it goes, step by step.

Three steps from opening Tallhorn to having what you came for.

  1. Start with the collection

    Open Aggregation from the collection’s sidebar and add the first stage.

  2. Check each transformation

    Use previews to validate filters and grouped values before adding the next stage.

  3. Run the complete pipeline

    Inspect the results in a table, tree, or JSON view, and use Explain to understand the plan.

At a glance.

Editing
Stage list or raw pipeline text, switchable both ways
Stages
Add, remove, reorder by drag, switch on and off
Previews
Document count per stage, on a sample
Write stages
$out and $merge, always confirmed, never run in previews
Results
Table, tree or JSON; Explain on the pipeline
Price
Free

Questions about aggregation pipelines, answered.

Can I paste an existing pipeline?

Yes. Raw mode accepts the pipeline array, and you can switch to the stage list to work through it.

Do previews silently run write stages?

No. Write-producing stages are guarded. Running $out or $merge requires an explicit confirmation.

Can I turn a stage off without deleting it?

Yes. Each stage has a switch. A stage that is off is skipped by previews and runs, and it stays in the pipeline until you remove it.

Do previews run on the whole collection?

No. Previews run on a sample, so they stay quick on large collections. Run executes the complete pipeline.

Can I use allowDiskUse?

Yes. It is an option when you run the full pipeline.

Can I explain a pipeline?

Yes. Explain works on aggregation pipelines as well as find queries, and it never sends a $out or $merge stage.