本文介绍了甚至私自安装上一流无法执行查找操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经问上解析社会这个问题,但我还没有收到任何答案。
我安装的类有权限,这将使客户端上做任何操作:
然而,当我尝试在类查询时,它给我的错误:
客户端不允许在执行查找操作 安装集合。
下面是我的示例查询:
ParseQuery mainquery =新ParseInstallation()getQuery()。mainquery.whereMatchesQuery(用户,innerQuery);mainquery.findInBackground();解决方案
使用 Parse.Cloud.useMasterKey(); 云code的第一行之前
I've already asked this question on parse community but I haven't received any answers.
My Installation class has permissions that would enable client to do any operation on it:
However, when I try to query on the class, it gives me the error:
Clients aren't allowed to perform the find operation on the installation collection.
Here is my sample query:
ParseQuery mainquery = new ParseInstallation().getQuery(); mainquery.whereMatchesQuery("user", innerQuery); mainquery.findInBackground();解决方案
Use Parse.Cloud.useMasterKey(); before the first line of your cloud code.
更多推荐
甚至私自安装上一流无法执行查找操作
发布评论