Docs Menu

Docs HomePHP Library Manual

MongoDB\MapReduceResult Class

New in version 1.2.

MongoDB\MapReduceResult

This class extends PHP's IteratorAggregate interface. An instance of this class is returned by MongoDB\Collection::mapReduce().

This class allows for iteration of map-reduce results irrespective of the output method (e.g. inline, collection). It also provides access to command statistics.

←  MongoDB\ChangeStream::valid()MongoDB\MapReduceResult::getCounts() →