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.