甚至私自安装上一流无法执行查找操作

编程入门 行业动态 更新时间:2024-10-24 08:29:21
本文介绍了甚至私自安装上一流无法执行查找操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经问上解析社会这个问题,但我还没有收到任何答案。

我安装的类有权限,这将使客户端上做任何操作:

然而,当我尝试在类查询时,它给我的错误:

  

客户端不允许在执行查找操作  安装集合。

下面是我的示例查询:

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.

更多推荐

甚至私自安装上一流无法执行查找操作

本文发布于:2023-11-06 22:39:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564870.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上一   操作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!