Subgraph
GraphQL Queries
Sports, Leagues, Countries Entities
League Entity

League Entity

Description

Represents a sports league in a specific country. It tracks the games within the league and provides data on active games and betting turnover.

Usage

This entity is useful for organizing games into leagues. If you're building a system that tracks championship brackets or league standings, this is the entity to use for organizing games and displaying league-related information.

Attributes

AttributeTypeDescription
idID!Unique identifier for the league.
nameString!Name of the league.
slugString!URL-friendly slug for the league.
countryCountry!Reference to the country the league belongs to.
games[Game!]! @derivedFromList of games associated with the league.
hasActiveGamesBoolean!Indicates if there are active games in the league.
activeGamesEntityIds[String!]List of IDs of active games.
turnoverBigInt!Turnover value for the league based on betting activity.