File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -232,12 +232,13 @@ Read Preference Options
232
232
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
- - | **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``
241
242
242
243
* - :manual:`maxStalenessSeconds </reference/connection-string/#mongodb-urioption-urioption.maxstalenessseconds>`
243
244
- {+int-data-type+}
You can’t perform that action at this time.
0 commit comments