Doctrine\MongoDB\Aggregation\Stage\Group::first PHP Метод

first() публичный Метод

Returns the value that results from applying an expression to the first document in a group of documents that share the same group by key. Only meaningful when documents are in a defined order.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/first/
См. также: Expr::first
public first ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator
    public function first($expression)
    {
        $this->expr->first($expression);
        return $this;
    }