public function addAggregation($name, $type, $options) { return $this->addAggregate($name, [$type => $options]); }