How to get rank of player with REST

#1

Hi,
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?
Thanks

#2

You can check the REST API Docs

#3

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

2 Likes
#4

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’);
mySchema.purge();