Skip to content

Commit ef3cf73

Browse files
committed
MW feedback
1 parent 0fdae59 commit ef3cf73

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ free MongoDB Atlas cluster and load the sample datasets, see the :ref:`<csharp-q
3939
Retrieve Distinct Values
4040
------------------------
4141

42-
To retrieve the distinct values for a specified field, call the ``IMongoCollection<TDocument>.Distinct()``
43-
or ``IMongoCollection<TDocument>.DistinctAsync()`` method and pass the name of the field
44-
you want to find distinct values for.
42+
To retrieve the distinct values for a specified field, call the ``Distinct()`` or
43+
``DistinctAsync()`` method of an ``IMongoCollection<TDocument>`` instance and pass the name
44+
of the field you want to find distinct values for.
4545

4646
Retrieve Values Across a Collection
4747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -50,7 +50,6 @@ The following example retrieves the distinct values of the ``borough`` field in
5050
the ``restaurants`` collection. Select the :guilabel:`Asynchronous` or :guilabel:`Synchronous`
5151
tab to see the corresponding code.
5252

53-
5453
.. tabs::
5554

5655
.. tab:: Asynchronous
@@ -173,15 +172,15 @@ describes the properties you can set on a ``DistinctOptions`` instance:
173172

174173
* - ``Collation``
175174
- | Sets the collation to use for the operation.
176-
| **Parameter Type**: ``Collation``
175+
| **Data type**: `Collation <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.DistinctOptions.Collation.html>`__
177176

178177
* - ``MaxTime``
179178
- | Sets the maximum amount of time that the operation can run.
180-
| **Parameter Type**: ``TimeSpan``
179+
| **Data type**: ``TimeSpan``
181180

182181
* - ``Comment``
183182
- | Attaches a comment to the operation.
184-
| **Parameter Type**: ``BsonValue`` or ``String``
183+
| **Data type**: `BsonValue <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.html>`__ or ``string``
185184

186185
The following example retrieves the distinct values of the ``name`` field for
187186
all documents that have a ``borough`` field value of ``"Bronx"`` and a

0 commit comments

Comments
 (0)