Knowledge base · Studio 3T Web IDE

Studio 3T Web IDE: Aggregation

By Donovan Kinney · Updated

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.

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes, including personalized advertising (“performance”), to provide you with additional functions (“functional”), and to show content from social media platforms, such as embedded videos (“social media”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in section 9 of our Privacy Policy.

Manage consent preferences