@@ -28,7 +28,7 @@ In this guide, you can learn how to specify **{+stable-api+}** compatibility whe
28
28
connecting to a MongoDB deployment.
29
29
30
30
The {+stable-api+} feature forces the server to run operations with behaviors compatible
31
- with the API version you specify. When you update either your driver or server,
31
+ with the API version you specify. When you update either your library or server version ,
32
32
the API version changes, which can change the way these operations behave.
33
33
Using the {+stable-api+} ensures consistent responses from the server and
34
34
provides long-term API stability for your application.
@@ -44,7 +44,7 @@ Enable the {+stable-api+}
44
44
To enable the {+stable-api+}, perform the following steps:
45
45
46
46
1. Construct a ``MongoDB\Driver\ServerApi`` object and pass the {+stable-api+}
47
- version you want to use. Currently, the driver supports only version 1.
47
+ version you want to use. Currently, the library supports only version 1.
48
48
#. Construct a ``MongoDB\Client`` object. For the ``driverOptions`` parameter, pass an
49
49
array that contains the ``serverApi`` connection option. Set this option to the
50
50
``MongoDB\Driver\ServerApi`` object you created in the previous step.
@@ -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
59
+ :emphasize-lines: 5-7, 9
60
60
61
61
.. note::
62
62
@@ -78,7 +78,7 @@ You can use these parameters to customize the behavior of the {+stable-api+}.
78
78
:stub-columns: 1
79
79
:widths: 25,75
80
80
81
- * - Option Name
81
+ * - Parameter
82
82
- Description
83
83
84
84
* - strict
@@ -101,7 +101,7 @@ The following code example shows how you can use these parameters when construct
101
101
:copyable: true
102
102
:start-after: // start-stable-api-options
103
103
:end-before: // end-stable-api-options
104
- :emphasize-lines: 5-7
104
+ :emphasize-lines: 5-7, 9
105
105
106
106
API Documentation
107
107
-----------------
0 commit comments