Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top 8 bracket viewer overlay #1

Open
opeik opened this issue Dec 24, 2020 · 1 comment
Open

Add top 8 bracket viewer overlay #1

opeik opened this issue Dec 24, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@opeik
Copy link
Owner

opeik commented Dec 24, 2020

No description provided.

@opeik opeik added the enhancement New feature or request label Dec 24, 2020
@opeik opeik self-assigned this Dec 24, 2020
@opeik
Copy link
Owner Author

opeik commented Dec 26, 2020

After poking around the smash.gg API, I believe these queries are what I'm after.

Fetch the phases:

query EventStandings($eventId: ID!) {
  event(id: $eventId) {
    id
    name
    phases {
      id
      bracketType
      name
      phaseOrder
    }
  }
}

Fetch the phase sets:

query PhaseSets($phaseId: ID!, $page: Int!, $perPage: Int!) {
  phase(id: $phaseId) {
    id
    name
    sets(
      page: $page
      perPage: $perPage
      sortType: CALL_ORDER
    ){
      pageInfo {
        total
        totalPages
      }
      nodes {
        id
        round
        slots {
          entrant {
            id
            name
          }
        }
      }
    }
  }
}

Fetch the set:

query set($setId: ID!) {
  set(id: $setId) {
    id
    slots {
      standing {
        entrant {
          name
        }
        stats {
          score {
            value
          }
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant