TO LIST

The TO LIST aggregation function returns a single list of all documents from the input stream.

For example, you can aggregate a stream of persons to a single list of full names.

See Also
RESULT SET
AGGREGATE
GROUP BY
Choose Where to Apply Aggregations
Parameter Description
Filter expressionAn expression to keep some elements only. It is useful to process the aggregation on a subpart of your input stream.
Expression An expression extracting the element to put into the Set. For example, person.fullname.