Last Updated: February 25, 2016
·
1.084K
· 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(); 
    }
}

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside