云数据库remove方法报错?
发布于 6 年前 作者 li88 6171 次浏览 来自 官方Issues

代码是:

db.collection('fruit').doc('46(数据缩减了,是_id)').remove({

success: function(res) {

console.log(res.data)

}

})

报错为:

Error: errCode: -1  | errMsg: document.remove:fail Error: cannot remove document with _id 46, please make sure that the document exists and you have the corresponding Write permission; at document.remove api; 

这个云数据库权限已设置为所有人可改动,求解,另外拜托大家教教用where指定条件删除

1 回复

你_id 是 “46(数据缩减了,是_id)"?

回到顶部