The ‘cursor’ option is required, except for aggregate with the explain argument
The 'cursor' option is required, except for aggregate with the explain argument
当mongodb的版本大于3.5,在使用aggregate查询时,需要有cursor参数。
Thinkphp5的mongodb驱动存在这个bug,修复步骤:
1,找到Builder.php,在aggregate方法里添加一行
$cmd = [
......[阅读全文]