group_by!() { /* proc-macro */ }Expand description
prax::group_by! — schema-aware DSL targeting group_by_columns.
Accepts by: (required), where:, _count:, _sum:, _avg:, _min:,
_max:, and having: keys.
ⓘ
prax::group_by!(client.user, {
by: [team_id, region],
where: { active: true },
_count: { _all: true },
_sum: { views: true },
having: { _count: { _all: { gt: 5 } } },
});