Sets in Phase

In this example we will get the sets in a specific phase. Here I have selected the "Finals" phase for the Slap City Singles event at Genesis 6.

Example #1 (All Sets in Event)

To get all sets, don't pass any filters to the sets query. Instead, just iterate over the the pages as necessary. You can use a much larger perPage here- it is kept small in the example for demo purposes.

  • Request
  • Response
query PhaseSets($phaseId: ID!, $page: Int!, $perPage: Int!) {
phase(id: $phaseId) {
id
name
sets(
page: $page
perPage: $perPage
sortType: STANDARD
){
pageInfo {
total
}
nodes {
id
slots {
id
entrant {
id
name
}
}
}
}
}
},
{
"phaseId":517325,
"page": 1,
"perPage": 3
}