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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -