因此,我正在尝试使用聚合管道在数据库中执行左联接操作。
我总是使用MongoDB驱动程序来执行操作(svn ci revisionNumber.h -m"Adadpted RN"
)。
在文档http://php.net/manual/en/set.mongodb.php
中,我还没有看到如何进行汇总我看到的唯一方法是使用de命令行驱动程序:
new MongoDB\Client('mongodb://localhost');
答案 0 :(得分:0)
是的,您可以使用驱动程序中提供的MongoCollection::aggregate
扩展名。
http://php.net/manual/en/mongocollection.aggregate.php