sorare/football/rivals.go

18 lines
414 B
Go
Raw Permalink Normal View History

2024-08-03 17:36:25 +00:00
package football
import "git.lehouerou.net/laurent/sorare/graphql"
type Rivals struct {
c *graphql.Client
PastGames *graphql.PaginatedQuery[RivalsGame, graphql.EmptyParams]
2024-08-03 17:36:25 +00:00
}
func NewRivals(c *graphql.Client) *Rivals {
return &Rivals{
c: c,
PastGames: graphql.NewPaginatedQuery[RivalsGame, graphql.EmptyParams](c, "pastGamesPaginated", []string{"football", "rivals"}).WithOverrideComplexity(107),
}
2024-08-03 17:36:25 +00:00
}