diff --git a/src/Client.php b/src/Client.php index f201ba220c..361980c1e0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -707,7 +707,6 @@ class Client */ public function count(string $collection, array $filters, array $options): int { - $filters = $this->cleanFilters($filters); // Use MongoDB's native count command with the working format instad of running find and count the results @@ -715,7 +714,7 @@ class Client self::COMMAND_COUNT => $collection, 'query' => $this->toObject($filters), ]; - var_dump($command); + // Add limit if specified if (isset($options['limit'])) { $command['limit'] = (int)$options['limit'];