Controllers\Api\Statements::aggregate PHP Method

aggregate() public method

Filters statements using the aggregate method.
public aggregate ( ) : Aggregate
return Aggregate http://php.net/manual/en/mongocollection.aggregate.php#refsect1-mongocollection.aggregate-examples
    public function aggregate()
    {
        $pipeline = $this->getPipeline();
        return \Response::json($this->query->aggregate($this->getOptions(), $pipeline));
    }