메소드 |
설명 |
|
addToSet ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Add to set accumulator |
|
avg ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Average accumulator |
|
first ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
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. |
|
last ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Returns the value that results from applying an expression to the last
document in a group of documents that share the same group by a field. |
|
max ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Returns the highest value that results from applying an expression
to each document in a group of documents that share the same group by key. |
|
min ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Returns the lowest value that results from applying an expression
to each document in a group of documents that share the same group by key. |
|
push ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Returns an array of all values that result from applying an expression
to each document in a group of documents that share the same group by key. |
|
setId ( $id ) |
|
|
sum ( string $field, literal | callable | Sokil\Mongo\Pipeline\Expression $expression ) : GroupStage |
Sum accumulator |
|
toArray ( ) |
|
|