Skip to content

Kirby 3.6.0

$query->aggregate()

Builds an aggregation query.

$query->aggregate(string $method, string $column = '*', int $default = 0): mixed

Parameters

Name Type Default Description
$method * string
$column string '*'
$default int An optional default value, which should be returned if the query fails

Return type

mixed

Parent class

Kirby\Database\Query