如何解决云数据库查询结果缺少数据问题?

小程序 文章 2022-02-25 11:20 556 0 全屏看文

AI助手支持GPT4.0

如何解决云数据库查询结果缺少数据问题?How to solve the problem of missing data in cloud database query results?

如何解决云数据库查询结果缺少数据问题?

如下图所示,使用云开发,在数据库中已有7条数据,但是通过db.collection('audit_e').limit(10).get({})或db.collection('audit_e').where().get({})查询出来的数据就是不全,总是丢数据,找不到问题所在。请问我错在哪里?该如何解决?


As shown in the figure below, using cloud development, there are 7 pieces of data in the database, but through dB collection('audit_e'). limit(10). Get ({}) or dB collection('audit_e'). where(). The data queried by get ({}) is incomplete. The data is always lost and the problem can not be found. What's wrong with me? How to solve it?

回答:

小黎:

数据权限问题

圣殿骑士:

修改下权限

若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人

苏军:

进右边上方的<数据权限>里面,看看是不是默认仅创建者可读写,估计是权限的问题

Mr.Zhao:

集合权限问题,设置所有人可读

曹钰辉:

问题解决了!

非常感谢!

确实是这个权限问题!


-EOF-

AI助手支持GPT4.0