How To Update A User Object In Parse.com Not Create A New Record Object?
Using Parse.com and JavaScript SDK. The below code saves the data as a new user object in parse. But I want it to actually update the current user that is logged in and not create
Solution 1:
It looks like you need to call profileSave.save()
again within the success function, but this time WITHOUT arguments.
Solution 2:
Actually this was very simple to resolve. The below now updates the object, the only part changed is:
Instead of using var profileSave = Parse.User.current();
I used
var profileSave = Parse.User.current();
Which makes perfect sense now, some useful background knowledge can also be found here Update user object in parse.com
Post a Comment for "How To Update A User Object In Parse.com Not Create A New Record Object?"