diff --git a/packages/client/src/object/aggregateOrThrow.ts b/packages/client/src/object/aggregateOrThrow.ts index 7c2bcb5f6..ef3900a06 100644 --- a/packages/client/src/object/aggregateOrThrow.ts +++ b/packages/client/src/object/aggregateOrThrow.ts @@ -85,7 +85,7 @@ export async function aggregateOrThrow< const ret: AggregationResultsWithGroups = result.data .map((entry) => { return { - group: entry.group as any, + $group: entry.group as any, ...legacyToModernSingleAggregationResult(entry), }; }) as any; // fixme