Method |
Description |
|
__construct ( Collection $collection ) |
|
|
__toString ( ) |
|
|
aggregate ( array $options = [] ) |
|
|
aggregateCursor ( array $options = [] ) |
|
|
allowDiskUse ( $allow = true ) |
|
|
explain ( $allow = true ) |
|
|
getOptions ( ) |
|
|
group ( array | callable $stage ) : Pipeline |
Groups documents by some specified expression and outputs to the next
stage a document for each distinct grouping. The output documents
contain an _id field which contains the distinct group by key. The
output documents can also contain computed fields that hold the values
of some accumulator expression grouped by the $group‘s _id field. $group
does not order its output documents. |
|
jsonSerialize ( ) |
|
|
limit ( $limit ) |
|
|
match ( array | Expression $expression ) : Pipeline |
Filter documents by expression |
|
project ( array $pipeline ) : Pipeline |
Passes along the documents with only the specified fields to the next
stage in the pipeline. The specified fields can be existing fields
from the input documents or newly computed fields. |
|
setBatchSize ( $batchSize ) |
|
|
skip ( $skip ) |
|
|
sort ( array $sortFields ) |
|
|
toArray ( ) |
|
|
unwind ( string $path ) : Pipeline |
Deconstructs an array field from the input documents to output a document for each element. |
|