/** * {@inheritdoc} */ public function execute($options = []) { // Force cursor to be used $options = array_merge($options, ['cursor' => true]); $cursor = parent::execute($options); return $this->prepareCursor($cursor); }
/** * Executes the aggregation pipeline * * @param array $options * @return Iterator */ public function execute($options = []) { return $this->builder->execute($options); }