I have a sample GameScore class in Parse and i want to get all datas from this class with cloud coding. I suppose i missed something. My code is below.
var GameScore = Parse.Object.extend("GameScore");
var query = new Parse.Query(GameScore);
query.find({
success: function(results) {
// results is an array of Parse.Object.
alert("Successfully retrieved " + results.length + " user.");
for(var i = 0 ; i < results.length;i++)
{
var object = results[i];
alert(object.id + ' - ' + results[i].get("objectId"));
}
},
error: function(error) {
// error is an instance of Parse.Error.
status.error("Error:" + error.code + " Message" + error.message);
}
});
How can get all datas?