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

Feat/refactor arena graphql query #484

Merged

Conversation

boscohyun
Copy link
Member

@boscohyun boscohyun commented Nov 15, 2024

GraphQL Schema Changes

query { arena { leaderboard {} } }

before

query {
  arena {
    leaderboard(ranking: 1, length: 10) {
      address
      championshipId
      rank
      round
      storedBlockIndex
      arenaInformation {
        address
        lose
        purchasedTicketCount
        ticket
        ticketResetCount
        win
      }
      arenaScore {
        address
        score
      }
      simpleAvatar {
        address
        agentAddress
        blockIndex
        characterId
        combinationSlotAddresses
        ear
        exp
        hair
        lens
        level
        name
        rankingMapAddress
        tail
        updatedAt
        version
      }
    }
  }
}

after

query {
  arena {
    leaderboard(ranking: 1, length: 10) {
      agentAddress
      avatarAddress
      cp
      ear
      exp
      hair
      lastBattleBlockIndex
      lens
      level
      lose
      name
      portraitId
      purchasedTicketCount
      rank
      score
      tail
      ticket
      ticketResetCount
      win
    }
  }
}

query { arena { leaderboardByAvatarAddress {} } }

before

query {
  arena {
    leaderboardByAvatarAddress(avatarAddress: "") {
      address
      championshipId
      rank
      round
      storedBlockIndex
      arenaInformation {
        address
        lose
        purchasedTicketCount
        ticket
        ticketResetCount
        win
      }
      arenaScore {
        address
        score
      }
      simpleAvatar {
        address
        agentAddress
        blockIndex
        characterId
        combinationSlotAddresses
        ear
        exp
        hair
        lens
        level
        name
        rankingMapAddress
        tail
        updatedAt
        version
      }
    }
  }
}

after

query {
  arena {
    leaderboardByAvatarAddress(avatarAddress:"") {
      agentAddress
      avatarAddress
      cp
      ear
      exp
      hair
      lastBattleBlockIndex
      lens
      level
      lose
      name
      portraitId
      purchasedTicketCount
      rank
      score
      tail
      ticket
      ticketResetCount
      win
    }
  }
}

@boscohyun boscohyun requested review from moreal, Atralupus and a team November 15, 2024 09:45
@boscohyun boscohyun self-assigned this Nov 15, 2024
@boscohyun boscohyun force-pushed the feat/refactor-arena-graphql-query branch 2 times, most recently from 21e4fb1 to 2726137 Compare November 18, 2024 08:43
@boscohyun boscohyun force-pushed the feat/refactor-arena-graphql-query branch from 253328a to 39cb3b5 Compare November 21, 2024 05:09
@boscohyun boscohyun force-pushed the feat/refactor-arena-graphql-query branch from 39cb3b5 to 429d473 Compare November 25, 2024 00:44
@boscohyun boscohyun added this pull request to the merge queue Nov 25, 2024
Merged via the queue into planetarium:main with commit df40bbe Nov 25, 2024
7 checks passed
@boscohyun boscohyun deleted the feat/refactor-arena-graphql-query branch November 25, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use arenaParticipant MongoDB collection in the "arena" GraphQL query
2 participants