Sign up for Hasura Newsletter
Loading...

Leaderboard

We've reached the last part of our Shooter Arena tutorial and we shall be implementing the worldwide leaderboard.

We shall be recording the number of wins and losses each user has and they shall be ranked by the difference. (wins - losses)

We shall be using Hasura Actions to automatically increase the wins column of the winner and the losses column of the loser depending on the battle data.

This way, users don't have permission to update their wins or losses columns, ensuring there is no cheating.

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin