set.aggregate()
Learn: Sets |
---|
Aggregate all elements of a Set.
Description
Aggregates all elements of the calling Set. There is no ordering expectation.
The calling Set isn’t changed.
Eager loading
This method uses eager loading and requires a read of each document in the calling Set. For large Sets, this may result in poor performance and high costs.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
seed |
true |
Initial state value. |
|
combiner |
true |
Anonymous FQL function that aggregates the elements. |