diff --git a/lib/graphql/resolvers/index.ts b/lib/graphql/resolvers/index.ts index 5a71e97..7d9ceff 100644 --- a/lib/graphql/resolvers/index.ts +++ b/lib/graphql/resolvers/index.ts @@ -337,7 +337,12 @@ export const resolvers = { GROUP BY t.confederation ORDER BY appearances DESC `) - return rows + return (rows as Record[]).map(r => ({ + confederation: r.confederation, + appearances: r.appearances, + titles: r.titles, + totalGoals: r.total_goals, + })) }, async biggestWins(_: unknown, { limit = 10 }: { limit?: number }) { const rows = await db.select().from(matches)