Last Updated: February 25, 2016
·
879
· dweebles

Parse method for latest object

Avoid having to go through multiple filters in Parse's cloud DB to retrieve the last object added to the class.

example:

var User = Parse.Object.extend("User");
var userObject = request.params.User;

userObject.new(){
    success: function(object){   
        response.succcess(JSON.stringfy(object));
    },
    error: function(error){
        response.error(); 
    }
}