File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,10 @@ Read Preference Options
233
233
* - :manual:`readPreference </reference/connection-string/#mongodb-urioption-urioption.readpreference>`
234
234
- `MongoDB\\Driver\\ReadPreference <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
235
235
- | **MongoDB\Client**:
236
- | ``$uriOptions = [ 'readPreference' => MongoDB\Driver\ReadPreference.RP_SECONDARY_PREFERRED ];``
236
+ | .. code-block::
237
+ |
238
+ | $uriOptions = [ 'readPreference' =>
239
+ | MongoDB\Driver\ReadPreference.RP_SECONDARY_PREFERRED ];
237
240
| **Connection URI**: ``readPreference=secondaryPreferred``
238
241
239
242
* - :manual:`maxStalenessSeconds </reference/connection-string/#mongodb-urioption-urioption.maxstalenessseconds>`
You can’t perform that action at this time.
0 commit comments