I’m saving players scores to the dashboard and I wanna retrieve top 10 high scores to the leaderboard.
Here is the code for saving scores to dashboard
const GameScore = Moralis.Object.extend(‘GameScore’);
const gameScore = new GameScore();
gameScore.set("player", user.get("ethAddress"))
gameScore.set("score", score);
gameScore.save();
Thanks