Skip to content

DOCSP-50751: agg tutorial link #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions source/fundamentals/aggregation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,33 @@ Aggregation
Overview
--------

In this guide, you can learn how to use **aggregation operations** in the MongoDB Kotlin driver.
In this guide, you can learn how to use **aggregation operations** in
the {+driver-short+}.

Aggregation operations process data in your MongoDB collections and return computed results. MongoDB's Aggregation
pipeline, part of the Query API, is modeled on the concept of data processing pipelines. Documents enter a multi-staged pipeline that
transforms the documents into an aggregated result.
Aggregation operations process data in your MongoDB collections and
return computed results. MongoDB's Aggregation pipeline, part of the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this should be capitalized

Suggested change
return computed results. MongoDB's Aggregation pipeline, part of the
return computed results. MongoDB's aggregation pipeline, part of the

Query API, is modeled on the concept of data processing pipelines.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Query API, is modeled on the concept of data processing pipelines.
Query API, is modeled on the concept of data-processing pipelines.

Documents enter a multi-staged pipeline that transforms the documents
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Documents enter a multi-staged pipeline that transforms the documents
Documents enter a multi-stage pipeline that transforms the documents

into an aggregated result.

Another way to think of aggregation is like a car factory. Within the car factory is an assembly line, along which
are assembly stations with specialized tools to do a specific job, like drills and welders. Raw parts enter the factory,
which are then transformed and assembled into a finished product.
.. sharedinclude:: dbx/agg-tutorials-manual-tip.rst

The **aggregation pipeline** is the assembly line, **aggregation stages** are the assembly stations, and
**operator expressions** are the specialized tools.
.. replacement:: language

:guilabel:`{+language+} (Coroutine)`

Analogy
~~~~~~~

Another way to think of aggregation is like a car factory. Within the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Another way to think of aggregation is like a car factory. Within the
Aggregation is like a car factory. Within the

car factory is an assembly line, along which are assembly stations with
specialized tools to do a specific job, like drills and welders. Raw
parts enter the factory, which are then transformed and assembled into a
finished product.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
specialized tools to do a specific job, like drills and welders. Raw
parts enter the factory, which are then transformed and assembled into a
finished product.
specialized tools to do a specific job, like drills and welders. Raw
parts enter the factory, and the factory transforms them and assembles
them into a finished product.


The **aggregation pipeline** is the assembly line, **aggregation
stages** are the assembly stations, and **operator expressions** are the
specialized tools.

Aggregation and Find Operations Compared
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
Loading