Skip to content

Commit 7cf02f1

Browse files
committed
Fix compatibility with MongoDB 4.4
1 parent 72be9c2 commit 7cf02f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function getColumns($table)
160160
[
161161
'$group' => [
162162
'_id' => '$fields.k',
163-
'total' => ['$count' => new stdClass()],
163+
'total' => ['$sum' => 1],
164164
'types' => ['$addToSet' => ['$type' => '$fields.v']],
165165
],
166166
],

0 commit comments

Comments
 (0)