Skip to content
Merged
Changes from all 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
20 changes: 10 additions & 10 deletions source/tutorial/getting-started.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ examples in the shell above.
:tabid: example-1

Switch Database
~~~~~~~~~~~~~~~
---------------

Within the :ref:`shell <mongo-web-shell>`, ``db`` refers to
your current database. Type ``db`` to display the current
Expand Down Expand Up @@ -69,7 +69,7 @@ examples in the shell above.
:tabid: example-2

Populate a Collection (Insert)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------

MongoDB stores documents in :doc:`collections
</core/databases-and-collections>`. Collections are analogous to
Expand Down Expand Up @@ -160,7 +160,7 @@ examples in the shell above.
:tabid: example-3

Select All Documents
~~~~~~~~~~~~~~~~~~~~
--------------------

To select the documents from a collection, you can use the
:method:`db.collection.find()` method. To select all documents
Expand All @@ -179,7 +179,7 @@ examples in the shell above.
:tabid: example-4

Filter Data with Comparison Operators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------

For an equality match (``<field>`` equals ``<value>``),
specify ``<field>: <value>`` in the :ref:`query filter
Expand Down Expand Up @@ -227,7 +227,7 @@ examples in the shell above.
:tabid: example-5

Specify Fields to Return (Projection)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------

To specify fields to return, pass a projection document to the
:method:`db.collection.find(\<query document\>, \<projection
Expand Down Expand Up @@ -260,17 +260,17 @@ examples in the shell above.
:tabid: example-6

Aggregate Data (:pipeline:`$group`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------

You can use aggregation to group values from multiple documents
together and return a single result. Aggregation in MongoDB
is performed with an :ref:`aggregation pipeline
<aggregation-framework>`.

While :method:`find()` operations are useful for data
retrieval, the aggregation pipeline allows you to manipulate
data, perform calculations, and write more expressive queries
than simple :ref:`CRUD operations <crud>`.
While :method:`~db.collection.find()` operations are useful for
data retrieval, the aggregation pipeline allows you to manipulate
data, perform calculations, and write more expressive queries than
simple :ref:`CRUD operations <crud>`.

In the :ref:`shell <mongo-web-shell>`, run the following
aggregation pipeline to count the number of occurrences
Expand Down