Skip to content

Commit 91bb0ed

Browse files
committed
Merge remote-tracking branch 'origin/docsp-41958-connection-targets' into docsp-41958-connection-targets
2 parents 8561c72 + 5ecaa22 commit 91bb0ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/includes/connect/atlas.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
// Create a MongoDB client with server API options
88
$client = new MongoDB\Client($uri, [], [
9-
'serverApi' => [
10-
'version' => '1'
11-
]
9+
'serverApi' => new MongoDB\Driver\ServerApi('1')
1210
]);
1311

1412
// Ping the server to verify that the connection works

0 commit comments

Comments
 (0)