Skip to content

Commit f81595f

Browse files
authored
DOCSP-23699: fixed format of a heading (#374)
* DOCSP-23699: fixed format of a heading * small rst error * fixed bolded text * changes to wording
1 parent 730a955 commit f81595f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

source/fundamentals/crud/read-operations/distinct.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,23 @@ usage of ``distinct()``:
4242
Distinct
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+
5256
Example
5357
```````
5458

5559
The "``Queens``" and "``Manhattan``" borough values each appear more than
5660
once 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

source/usage-examples/distinct.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()``
5252
method.
5353

5454
Example

0 commit comments

Comments
 (0)