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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -