Unverified Commit f4c529cc authored by Andreas Braun's avatar Andreas Braun

Merge pull request #652

parents 9a7e242d f0d369d8
...@@ -192,7 +192,7 @@ class CountDocuments implements Executable ...@@ -192,7 +192,7 @@ class CountDocuments implements Executable
$pipeline[] = ['$limit' => $this->options['limit']]; $pipeline[] = ['$limit' => $this->options['limit']];
} }
$pipeline[] = ['$group' => ['_id' => null, 'n' => ['$sum' => 1]]]; $pipeline[] = ['$group' => ['_id' => 1, 'n' => ['$sum' => 1]]];
$cmd = [ $cmd = [
'aggregate' => $this->collectionName, 'aggregate' => $this->collectionName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment