public function aggregate() { $pipeline = $this->getPipeline(); return \Response::json($this->query->aggregate($this->getOptions(), $pipeline)); }