Skip to content

Commit ef8dcb3

Browse files
mongoKartjmikola
andauthored
Apply suggestions from code review
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
1 parent 5c80f10 commit ef8dcb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/connect/stable-api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To enable the {+stable-api+}, perform the following steps:
4646
1. Construct a ``MongoDB\Driver\ServerApi`` object and pass the {+stable-api+}
4747
version you want to use. Currently, the library supports only version 1.
4848
#. Construct a ``MongoDB\Client`` object. For the ``driverOptions`` parameter, pass an
49-
array that contains the ``serverApi`` connection option. Set this option to the
49+
array that contains the ``serverApi`` option. Set this option to the
5050
``MongoDB\Driver\ServerApi`` object you created in the previous step.
5151

5252
The following code example shows how to specify {+stable-api+} version 1:

source/includes/connect/stable-api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$uri = "mongodb://<hostname>:<port>";
33

44
$driverOptions = ['serverApi' => new MongoDB\Driver\ServerApi('1')];
5+
56
$client = new MongoDB\Client($uri, [], $driverOptions);
67
// end-specify-v1
78

0 commit comments

Comments
 (0)