MongoDB驱动程序有聚合管道吗?

时间:2019-02-15 10:24:18

标签: php mongodb

因此,我正在尝试使用聚合管道在数据库中执行左联接操作。

我总是使用MongoDB驱动程序来执行操作(svn ci revisionNumber.h -m"Adadpted RN" )。

在文档http://php.net/manual/en/set.mongodb.php

中,我还没有看到如何进行汇总

我看到的唯一方法是使用de命令行驱动程序:

new MongoDB\Client('mongodb://localhost');

1 个答案:

答案 0 :(得分:0)

是的,您可以使用驱动程序中提供的MongoCollection::aggregate扩展名。 http://php.net/manual/en/mongocollection.aggregate.php