Skip to content

Commit daa47aa

Browse files
mlaopanejmikola
authored andcommitted
Fix example 1
The call is made following the MongoDB\Client::selectCollection() signature instead of the MongoDB\Database::selectCollection() signature
1 parent 66f5b72 commit daa47aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/method/MongoDBDatabase-selectCollection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The following example selects the ``users`` collection in the ``test`` database:
5757

5858
$db = (new MongoDB\Client)->test;
5959

60-
$collection = $db->selectCollection('test', 'users');
60+
$collection = $db->selectCollection('users');
6161

6262
The following example selects the ``users`` collection in the ``test``
6363
database with a custom read preference:

0 commit comments

Comments
 (0)