Commit daa47aa6 authored by Mickaël's avatar Mickaël Committed by Jeremy Mikola

Fix example 1

The call is made following the MongoDB\Client::selectCollection() signature instead of the MongoDB\Database::selectCollection() signature
parent 66f5b721
...@@ -57,7 +57,7 @@ The following example selects the ``users`` collection in the ``test`` database: ...@@ -57,7 +57,7 @@ The following example selects the ``users`` collection in the ``test`` database:
$db = (new MongoDB\Client)->test; $db = (new MongoDB\Client)->test;
$collection = $db->selectCollection('test', 'users'); $collection = $db->selectCollection('users');
The following example selects the ``users`` collection in the ``test`` The following example selects the ``users`` collection in the ``test``
database with a custom read preference: database with a custom read preference:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment