duanlu6114 2016-08-31 09:55
浏览 19

php Mongodb驱动查询类

I am having a list of _id and want to write a query to retrieve all documents matching the _ids in one single query.

Can someone help me out there?

$filter = ['_id' => 1];
$query = new MongoDB\Driver\Query($filter);

How should $filter be written to retrieve all documents with an _id in array.

  • 写回答

0条回答 默认 最新

    报告相同问题?