javascript - Query to find all users with a particular role in parse api -


i working pars javascript api. trying is, retrieving users of particular role. used code it.

var query = (new parse.query(parse.role)); query.equalto("name", "admin"); query.first({ success: function(role) {   role.relation('users').query().find({success: function(users) {   }}); }});  

the problem returns undefined value role. sops @ line role.relation('users').query().find({success: function(users) saying cannot call relation() undefined value of role.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -