我正在嘗試查詢用戶類以查找其用戶objectId
,我從我的應用程序傳遞到雲代碼。當我嘗試將我的代碼部署到Parse時,我總是收到此錯誤:解析雲代碼用戶查詢錯誤
Uncaught SyntaxError: Unexpected token ILLEGAL in main.js:4
有人可以讓我知道我在做什麼錯嗎?
Parse.Cloud.define("followerCount", function(request, response) {
var userQuery = new Parse.Query(Parse.User);
userQuery.equalTo(「objectId」, request.params.objectId);
var query = new Parse.Query("Friends");
query.equalTo("toUser", userQuery);
query.count({
success: function(count) {
response.success(count);
},
error: function() {
response.error("count failed");
}
});
});
的[解析雲代碼檢索與對象ID用戶(可能的複製http://stackoverflow.com/questions/26286919/parse-cloud-code-retrieving-a用戶與objectid) –
請參閱此: [http://stackoverflow.com/questions/26286919/parse-cloud-code-retrieving-a-user-with-objectid?noredirect=1&lq=1]( http://stackoverflow.com/questions/26286919/parse-cloud-code-retrieving-a-user-with-objectid?noredirect=1&lq=1) – Paradise