javascript - Parse Cloud Code User Query Error -
i trying query user class find user objectid
pass app cloud code. keep getting error when try deploy code parse:
uncaught syntaxerror: unexpected token illegal in main.js:4
can let me know doing wrong?
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"); } }); });
you're using wrong kind of quotes here: “objectid”
.
replace them correct quotes: "objectid"
Comments
Post a Comment