← Back to Stormify Documentation

sum

fun sum(path: String, alias: String? = null): MultiAggregator

Adds SUM(path) with an optional alias.


fun sum(path: ScalarPath, alias: String? = null): MultiAggregator

Adds SUM(path) using a type-safe ScalarPath with an optional alias.