fix: scope team page scorers by teamId instead of filtering global top 200
Teams with few goals (e.g. Qatar) were missing from the sidebar because topScorers(limit:200) only returned all-time top scorers. Now the query filters by teamId in SQL so every team shows their own scorers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -170,7 +170,7 @@ export const typeDefs = /* GraphQL */ `
|
||||
teams: [Team!]!
|
||||
team(slug: String!): Team
|
||||
|
||||
topScorers(year: Int, limit: Int): [ScorerEntry!]!
|
||||
topScorers(year: Int, limit: Int, teamId: Int): [ScorerEntry!]!
|
||||
player(name: String!): ScorerEntry
|
||||
hatTricks(year: Int): [HatTrick!]!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user