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.


Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.
Ready to get started?
Start for free on Hasura Cloud or you could contact our sales team for a detailed walk-through on how Hasura may benefit your business.
Stay in the know
Sign up for full access to our community highlights, new features, and occasional baby animal gifs! Oh, and we have a strict no-spam rule. โœŒ๏ธ