File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ Read Data from MongoDB
2525 Retrieve Data </read/retrieve>
2626 Specify Documents to Return </read/specify-documents-to-return>
2727 Specify Fields to Return </read/project>
28- Distinct Field Values </read/project >
28+ Distinct Field Values </read/distinct >
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ Overview
2323In this guide, you can learn how to use the {+driver-short+} to retrieve the
2424distinct values of a specified field across a collection.
2525
26- Within a collection, different documents might contain different values for a
26+ Within a collection, documents might contain different values for a
2727single field. For example, one document in a ``restaurants`` collection has a
2828``borough`` value of ``'Manhattan'``, and another has a ``borough`` value of
29- ``'Queens'``. By using the {+driver-short+}, you can retrieve all the unique values
29+ ``'Queens'``. You can use the {+driver-short+} to retrieve all the unique values
3030that a field contains across multiple documents in a collection.
3131
3232Sample Data
@@ -39,10 +39,10 @@ an Atlas cluster and assign the following values to your ``database`` and ``coll
3939variables:
4040
4141.. literalinclude:: /includes/read/distinct.rb
42- :language: ruby
43- :dedent:
44- :start-after: start-db-coll
45- :end-before: end-db-coll
42+ :language: ruby
43+ :dedent:
44+ :start-after: start-db-coll
45+ :end-before: end-db-coll
4646
4747To learn how to create a free MongoDB Atlas cluster and load the sample datasets, see the
4848:atlas:`Get Started with Atlas </getting-started>` guide.
You can’t perform that action at this time.
0 commit comments