/** * This method does your query lookup and returns the result in form of an array. * In case if there are no records to return, false is returned. * * @return bool */ public function getResult() { $result = $this->mongo->aggregate($this->getCollectionName(), $this->getPipeline()); return $result->toArray(); }