【发布时间】:2019-03-16 16:45:31
【问题描述】:
我正在尝试将我的 node rest api 数据存储到 mongodb atlas。但是出现插入错误。我什至添加了具有读写权限的“用户”,但仍然没有解决方案。这是错误:
{
"error": {
"name": "MongoError",
"message": "user is not allowed to do action [insert] on [test.products]",
"ok": 0,
"errmsg": "user is not allowed to do action [insert] on [test.products]",
"code": 8000,
"codeName": "AtlasError"
}
}
【问题讨论】:
-
检查用户的权限是否为数据库
test和集合products。请发布许可以澄清。