Skip to content

Commit 916ed85

Browse files
committed
test
1 parent 0dbe1e6 commit 916ed85

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/connect/connection-options.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,13 @@ Read Preference Options
232232

233233
* - :manual:`readPreference </reference/connection-string/#mongodb-urioption-urioption.readpreference>`
234234
- `MongoDB\\Driver\\ReadPreference <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
235-
- | **MongoDB\Client**:
236-
| .. code-block::
237-
|
238-
| $uriOptions = [ 'readPreference' =>
239-
| MongoDB\Driver\ReadPreference.RP_SECONDARY_PREFERRED ];
240-
| **Connection URI**: ``readPreference=secondaryPreferred``
235+
- **MongoDB\Client**:
236+
237+
.. code-block::
238+
239+
$uriOptions = [ 'readPreference' =>
240+
MongoDB\Driver\ReadPreference.RP_SECONDARY_PREFERRED ];
241+
**Connection URI**: ``readPreference=secondaryPreferred``
241242

242243
* - :manual:`maxStalenessSeconds </reference/connection-string/#mongodb-urioption-urioption.maxstalenessseconds>`
243244
- {+int-data-type+}

0 commit comments

Comments
 (0)