We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6c03cb commit 4fcfaf5Copy full SHA for 4fcfaf5
source/includes/aggregation.php
@@ -4,7 +4,8 @@
4
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset');
5
$client = new MongoDB\Client($uri);
6
7
-$collection = $client->sample_restaurants->restaurants;
+$db = $client->sample_restaurants;
8
+$collection = $db->restaurants;
9
10
// Retrieves documents with a cuisine value of "Bakery", groups them by "borough", and
11
// counts each borough's matching documents
0 commit comments