Skip to content

Commit 4577024

Browse files
committed
Merge pull request #408
2 parents 296694d + 6f845ed commit 4577024

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/includes/apiargs-MongoDBCollection-method-count-option.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ arg_name: option
66
name: hint
77
type: string|array|object
88
description: |
9-
The index to use. If you specify a document, it is interpreted as an index
10-
specification from which a name will be derived.
9+
The index to use. Specify either the index name as a string or the index key
10+
pattern as a document. If specified, then the query system will only consider
11+
plans using the hinted index.
12+
13+
.. versionchanged:: 1.2
14+
If a document is provided, it is passed to the command as-is. Previously,
15+
the library would convert the key pattern to an index name.
1116
interface: phpmethod
1217
operation: ~
1318
optional: true

0 commit comments

Comments
 (0)