Skip to content

Kirby 3.6.6

$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 0 An optional default value, which should be returned if the query fails

Return type

mixed

Parent class

Kirby\Database\Query