Skip to content

Commit ca2f634

Browse files
committed
code edit
1 parent bd636ab commit ca2f634

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/includes/get-started/quickstart.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use MongoDB\Client;
66

77
$client = new Client('<connection string>');
8-
$db = $client->sample_mflix;
9-
$collection = $db->movies;
8+
$collection = $client->sample_mflix->movies;
109

1110
$filter = ['title' => 'The Shawshank Redemption'];
1211
$result = $collection->findOne($filter);
@@ -16,4 +15,3 @@
1615
} else {
1716
echo "Document not found";
1817
}
19-
?>

0 commit comments

Comments
 (0)