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 6241c8a commit 0ec7b6aCopy full SHA for 0ec7b6a
source/includes/read/distinct.php
@@ -29,7 +29,7 @@
29
// Retrieves distinct "name" field values for documents matching the "borough" and "cuisine" fields query
30
// and attaches a comment to the operation
31
// start-distinct-with-comment
32
-$query = ['$and' => [['borough' => 'Bronx'], ['cuisine' => 'Pizza']]];
+$query = ['borough' => 'Bronx', 'cuisine' => 'Pizza'];
33
$options = ['comment' => 'Bronx pizza restaurants'];
34
$results = $collection->distinct('name', $query, $options);
35
0 commit comments