@@ -56,7 +56,7 @@ The following code example shows how to specify {+stable-api+} version 1:
56
56
:copyable: true
57
57
:start-after: // start-specify-v1
58
58
:end-before: // end-specify-v1
59
- :emphasize-lines: 5-7, 9
59
+ :emphasize-lines: 3,5
60
60
61
61
.. note::
62
62
@@ -70,7 +70,7 @@ The following code example shows how to specify {+stable-api+} version 1:
70
70
Configure the {+stable-api+}
71
71
------------------------
72
72
73
- The following table describes the parameters of the ``MongoDB\Driver\ServerApi`` constructor.
73
+ The ``MongoDB\Driver\ServerApi`` constructor also accepts the following optional parameters .
74
74
You can use these parameters to customize the behavior of the {+stable-api+}.
75
75
76
76
.. list-table::
@@ -83,15 +83,17 @@ You can use these parameters to customize the behavior of the {+stable-api+}.
83
83
84
84
* - strict
85
85
- | **Optional**. When ``true``, if you call a command that isn't part of
86
- the declared API version, the library raises an exception.
86
+ the declared API version, the server raises an exception.
87
87
|
88
- | Default: ``false``
88
+ | Default: ``null``. If this parameter is null, the server applies its default
89
+ value of ``false``.
89
90
90
91
* - deprecationErrors
91
92
- | **Optional**. When ``true``, if you call a command that is deprecated in the
92
- declared API version, the library raises an exception.
93
+ declared API version, the server raises an exception.
93
94
|
94
- | Default: ``false``
95
+ | Default: ``null``. If this parameter is null, the server applies its default
96
+ value of ``false``.
95
97
96
98
The following code example shows how you can use these parameters when constructing a
97
99
``MongoDB\Driver\ServerApi`` object:
@@ -101,15 +103,15 @@ The following code example shows how you can use these parameters when construct
101
103
:copyable: true
102
104
:start-after: // start-stable-api-options
103
105
:end-before: // end-stable-api-options
104
- :emphasize-lines: 5-7, 9
106
+ :emphasize-lines: 3,5
105
107
106
108
API Documentation
107
109
-----------------
108
110
109
111
For more information about the ``MongoDB\Client`` class, see the following {+driver-short+}
110
112
API documentation:
111
113
112
- - :ref :`MongoDB\Client <php-api-mongodbclient> `
114
+ - :phpclass :`MongoDB\Client`
113
115
114
116
For more information about the ``MongoDB\Driver\ServerApi`` class, see the following
115
117
{+extension-short+} API documentation:
0 commit comments