安装完成了的, 是访问url报错
报错信息是:
MongoDB Exception – yii\mongodb\Exception
The 'cursor' option is required, except for aggregate with the explain argument
↵
Caused by: MongoDB\Driver\Exception\RuntimeException
The 'cursor' option is required, except for aggregate with the explain argument
in /Applications/MAMP/htdocs/fecshop/vendor/yiisoft/yii2-mongodb/Command.php at line 186
- in /Applications/MAMP/htdocs/fecshop/vendor/yiisoft/yii2-mongodb/Collection.php at line 362 – yii\mongodb\Command::aggregate('product_flat', [['$match' => ['category' => '57b6ac42f656f246653bf576']], ['$sort' => ['score' => -1]], ['$project' => ['sku' => 1, 'spu' => 1, 'name' => ['name_en' => 1], 'image' => 1, ...]], ['$group' => ['_id' => '$spu', 'sku' => ['$first' => '$sku'], 'spu' => ['$first' => '$spu'], 'name' => ['$first' => '$name'], ...]], ...], [])