How to get rank of player with REST


I have a GameScore class that contains players score. I want to get player rank in this class with REST api and CURL. what is the appropriate query for this approach?


You can check the REST API Docs


rank can not be calculated using query or aggregate you have to write cloud code or client side code on sorted query result


Thank you @monajafi
You are right and I did it with cloud code.

I have another problem, I have created a job and inside this job I want to delete all objects in my class. I wrote blow code but did not work.
const mySchema = new Parse.Schema(‘WeeklyGameScore’);