you should go for parse cloud code which is written in java script
refer this link to know more
https://parse.com/docs/js/guide#cloud-code
then you just edit main.js
deploy and call that cloud code from your code
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
Parse.Cloud.define("updateTable", function(request, response) {
var currentUserId=request.params.currentLoggedinUser;
var userToBeUpdatedId=request.params.userToBeUpdated;
var User = Parse.Object.extend('_User'),
user = new User({ objectId: userToBeUpdatedId });
user.addUnique("followers",currentUserId);
Parse.Cloud.useMasterKey();
user.save().then(function(user) {
response.success(user);
}, function(error) {
response.error(error)
});
});
deploy this code using comand "parse deploy" from terminal.
call this code from your code like
ParseCloud.callFunction("updateTable", params);
i hope it will help.
"다른 사용자에게 개체를 추가하십시오."라는 것이 더 명확해야합니다. 또한 언어와 플랫폼이 도움이 될 것입니다. – nikdeapen
여기에 사용자 A로 로그인 한 상태에서 사용자 A와 B 모두에 대해 "점수"를 추가하려고합니다. 예를 들어 사용자 A의 점수가 7이고 B의 점수가 20 인 경우 점수는 활동 A에 로그인되어 있으며 해당 사용자의 "점수"필드에 추가됩니다. –
그런데 안드로이드에서 Parse를 사용하고 있습니다 ..... –