In this example, we will query for the current score on a set. For head-to-head sets, this will include the number of games won by each entrant.
Example #1 (Completed Head-to-Head Set)
For this completed head-to-head set, one entrant won (ie their placement is '1'), and they won 2 games to 0 so their stats for the set include a score of '2'.
- Request
- Response
query set($setId: ID!) {set(id: $setId) {idslots {idstanding {idplacementstats {score {labelvalue}}}}}},{"setId": "7794393"}
Example #2 (In-Progress Head-to-Head Set)
- Request
- Response
query InProgressSet {set(id: "18273807") {stateslots {entrant {name}standing {stats {score {value}}}}}}