File tree Expand file tree Collapse file tree
fundamentals/crud/read-operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,19 +42,23 @@ usage of ``distinct()``:
4242Distinct
4343--------
4444
45- Use a document field name as a parameter for the ``distinct()`` method to return a
46- list of the field's unique values. You can specify two optional parameters to adjust
47- the method output:
45+ The ``distinct()`` method requires a document field as a parameter. You can specify the
46+ following optional parameters to adjust the method output:
4847
4948- A ``query`` parameter to refine your results
5049- An ``options`` parameter to set collation rules
5150
51+ Document Field Parameter
52+ ~~~~~~~~~~~~~~~~~~~~~~~~
53+
54+ Pass the name of the document field to return a list of the field's unique values.
55+
5256Example
5357```````
5458
5559The "``Queens``" and "``Manhattan``" borough values each appear more than
5660once in the sample documents. However, the following example retrieves the
57- unique values of the ``borough`` field:
61+ unique values of the ``borough`` field:
5862
5963.. code-block:: javascript
6064
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ message that resembles the following:
4848
4949 "key" had the wrong type. Expected string, found <non-string type>
5050
51- Visit :ref:`node-fundamentals-distinct` for more information about the `distinct()`
51+ Visit :ref:`node-fundamentals-distinct` for more information about the `` distinct()``
5252method.
5353
5454Example
You can’t perform that action at this time.
0 commit comments