php mongodb聚合查询出现The 'cursor' option is required, except for aggregate with the explain argument

因为mongodb3.6版本以后pipeline必须传cursor参数,否则报The ‘cursor’ option is required, except for aggregate with the explain argument错误,解决方法:
在这里插入图片描述
引用:
php mongodb聚合查询出现The ‘cursor’ option is required, except for aggregate with the explain argument的问题:
https://segmentfault.com/q/1010000011478817

php mongodb操作(普通查询,聚合查询):
https://www.cnblogs.com/tujia/p/8134002.html

猜你喜欢

转载自blog.csdn.net/qq_34345149/article/details/86561561