← Back to Stormify Documentation

count

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

Adds COUNT(path) with an optional alias. Pass "*" for COUNT(*).


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

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