云平台数据库,无法操作

发布于 6 年前作者 pdu13557 次浏览最后编辑 6 年前来自 ask

我是小程序的管理员,执行云开发数据库删除时,会出现错误,权限不够。

Uncaught (in promise) Error: errCode: -1  | errMsg: document.remove:fail Error: cannot remove document with _id good_20181211114253512-331, please make sure that the document exists and you have the corresponding Write permission; at document.remove api; 

1.  _openid是别人的,

2. 权限已设置为:所有用户可读,仅创建者及管理员可写


1 回复
tao37
tao371 楼4 年前

从字面上理解,和权限无关,这是在update时,你赋值了_id,这个_id的值已经已经存在,重复了非唯一。