@@ -122,7 +122,7 @@ Timeout Options
122
122
123
123
* - :manual:`connectTimeoutMS </reference/connection-string/#mongodb-urioption-urioption.connecttimeoutms>`
124
124
- | **Data Type**: {+int-data-type+}
125
- - | **MongoDB\\Client Example**: ``$uriOptions = [ 'connectTimeoutMS' => 20000 ];``
125
+ | **MongoDB\\Client Example**: ``$uriOptions = [ 'connectTimeoutMS' => 20000 ];``
126
126
| **Connection URI Example**: ``connectTimeoutMS=20000``
127
127
128
128
* - :manual:`socketTimeoutMS </reference/connection-string/#mongodb-urioption-urioption.sockettimeoutms>`
@@ -224,8 +224,9 @@ Read Preference Options
224
224
225
225
* - :manual:`readPreference </reference/connection-string/#mongodb-urioption-urioption.readpreference>`
226
226
- | **Data Type**: `MongoDB\\Driver\\ReadPreference <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
227
- | **MongoDB\\Client Example**: ``$uriOptions = [ 'readPreference' => 'secondaryPreferred' ];``
228
- |
227
+ | **MongoDB\\Client Example**:
228
+ | ``$uriOptions = [ 'readPreference' => 'secondaryPreferred' ];``
229
+ |
229
230
| **Connection URI Example**: ``readPreference=secondaryPreferred``
230
231
231
232
* - :manual:`maxStalenessSeconds </reference/connection-string/#mongodb-urioption-urioption.maxstalenessseconds>`
@@ -235,7 +236,9 @@ Read Preference Options
235
236
236
237
* - :manual:`readPreferenceTags </reference/connection-string/#mongodb-urioption-urioption.readpreferencetags>`
237
238
- | **Data Type**: ``array``
238
- | **MongoDB\\Client Example**: ``$uriOptions = [ 'readPreferenceTags' => [ [ 'region' => 'east' ], [ 'region' => 'west'] ] ];``
239
+ | **MongoDB\\Client Example**:
240
+ | ``$uriOptions = [ 'readPreferenceTags' => [ [ 'region' => 'east' ], [ 'region' => 'west'] ] ];``
241
+ |
239
242
| **Connection URI Example**: ``readPreferenceTags=region:east,region:west``
240
243
241
244
Authentication Options
@@ -255,8 +258,10 @@ Authentication Options
255
258
256
259
* - :manual:`authMechanismProperties </reference/connection-string/#mongodb-urioption-urioption.authmechanismproperties>`
257
260
- | **Data Type**: {+string-data-type+}
258
- | **MongoDB\\Client Example**: ``$uriOptions = [ 'authMechanism' => 'MONGODB-AWS', 'authMechanismProperties' => 'AWS_SESSION_TOKEN:12345' ];``
259
- | **Connection URI Example**: ``authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:12345``
261
+ | **MongoDB\\Client Example**:
262
+ | ``$uriOptions = [ 'authMechanismProperties' => 'AWS_SESSION_TOKEN:12345' ];``
263
+ |
264
+ | **Connection URI Example**: ``authMechanismProperties=AWS_SESSION_TOKEN:12345``
260
265
261
266
* - :manual:`authSource </reference/connection-string/#mongodb-urioption-urioption.authsource>`
262
267
- | **Data Type**: {+string-data-type+}
0 commit comments