The Aggregation editor builds and runs MongoDB aggregation pipelines. Open it by right-clicking a collection and choosing Aggregate. It opens in a tab prefixed (AG).
Adding stages
A new pipeline starts with an empty stage and the operator chooser: search for an operator by name, describe what you want in plain language, or pick from the list. Each operator card explains what it does. You can also hand the whole problem to the AI Assistant with the AI provider your administrator configured in Studio 3T Access (Amazon Bedrock, OpenAI, or Google Gemini).

Stage Builder and Code view
The Stage Builder / Code toggle in the top-right corner switches between two representations of the same pipeline:
- Code shows the entire pipeline as one JSON array. Paste a complete pipeline here (from a script, a colleague, or an AI suggestion) and it is parsed into individual stages:

- Stage Builder lists the stages down the left side. Each stage can be toggled on or off individually (invaluable for isolating a problem) and reordered by dragging:

Editing a stage
Select a stage to edit it. Most stage types offer two editing modes, switched with the toolbar under the stage editor:
- Stage Builder: a visual editor for the stage. A $match stage, for example, gets the same condition-row interface as the Visual Query Builder, including drag-and-drop from the input data:

Inspecting inputs and outputs
The two panes at the bottom make pipelines debuggable stage by stage:
- The left pane shows Pipeline Input or the selected stage’s input.
- The right pane shows Pipeline Output or the selected stage’s output.
Both offer the familiar table/JSON toggle, paging, and Count docs. Run the full pipeline with Run pipeline, and use Save / Load to keep pipelines as files on your machine.