Skip to content

Commit 02755ef

Browse files
committed
Merge pull request mongodb#181 from mcmorisi/DRIVERS-2658-hint
DOCSP-45139: Add Hint option for Distinct operation
1 parent 892f121 commit 02755ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/read/distinct.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ options you can set to customize the operation:
138138
- | The read preference to use for the operation. To learn more, see
139139
:manual:`Read Preference </core/read-preference/>` in the Server manual.
140140
| **Type**: ``MongoDB\Driver\ReadPreference``
141+
142+
* - ``hint``
143+
- | The index to use for the operation.
144+
| **Type**: ``string|object``
141145

142146
The following example retrieves the distinct values of the ``name`` field for
143147
all documents that have a ``borough`` field value of ``'Bronx'`` and a

0 commit comments

Comments
 (0)