Last active
August 29, 2015 14:17
-
-
Save joanmolinas/c39fbf053511b5c00aa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//REQUIRE PARSE | |
var Parse = require('parse').Parse; | |
//ADD NECESSARY KEYS - FOR MODIFY IS NECESSARY MASTER KEY | |
Parse.initialize(APP_KEY, JSC_KEY, MASTER_KEY); | |
//YOU HAVE USE THIS COMMAND FOR USE MASTER KEY | |
Parse.Cloud.useMasterKey(); | |
var UserClass = Parse.Object.extend('_User'); | |
var user = new UserClass(); | |
user.id = "K0yi1UZpG8"; | |
user.set('name','John'); | |
user.save(null,{ | |
success: function(person) { | |
console.log("modify"); | |
}, error : function(person, error) { | |
console.log(error); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment