@@ -567,54 +567,6 @@ To update the :guilabel:`count results`:
567
567
.. figure:: /images/compass/agg-builder-show-document-count.png
568
568
:alt: Show current document counts
569
569
570
- Example
571
- -------
572
-
573
- In this example, you create and run a pipeline
574
- for a collection with airline data. You can download this
575
- dataset from the following link:
576
- `air_airlines.json <https://raw.githubusercontent.com/mongodb/docs-assets/compass/air_airlines.json>`__.
577
-
578
- For instructions on importing JSON data into your cluster, see :ref:`Import Data
579
- into a Collection <import-data>`. This example assumes you have the data in the
580
- ``example.air_airlines`` namespace.
581
-
582
- Procedure
583
- ~~~~~~~~~
584
-
585
- 1. Connect to a database deployment. For information on how to connect to a
586
- database deployment, see :atlas:`Connect via Compass </compass-connection/>`.
587
-
588
- #. Select the ``example`` database where the ``air_airlines`` collection
589
- exists.
590
-
591
- #. Create the Pipeline
592
-
593
- |
594
-
595
- The following pipeline has two aggregation stages:
596
- :pipeline:`$group` and :pipeline:`$match`.
597
-
598
- - The ``$group`` stage groups documents by their
599
- ``active`` status and ``country``. The stage also adds
600
- a new ``flightCount`` field containing the number
601
- of documents in each group.
602
-
603
- - The ``$match`` stage filters documents to return documents
604
- with a ``flightCount`` value greater than or equal to ``5``.
605
-
606
- .. figure:: /images/compass/agg-builder-full-example.png
607
- :alt: Aggregation Builder Full Example
608
-
609
- #. Run the Pipeline.
610
-
611
- Click :guilabel:`Run` at the top right of the pipeline builder.
612
-
613
- The pipeline returns documents, as shown in the following abbreviated example:
614
-
615
- .. figure:: /images/compass/airline-example-results.png
616
- :alt: Airline Pipeline Results
617
-
618
570
.. toctree::
619
571
:titlesonly:
620
572
0 commit comments