MongoError: user is not allowed to do action

前端 未结 6 508
[愿得一人]
[愿得一人] 2021-02-05 10:29

I am using MongoDB Atlas as my database.

I am using angular4 with loopback as api.

My application connects to my database fine. However, when I try to get data,

6条回答
  •  清歌不尽
    2021-02-05 10:39

    In the Atlas cluster, select Security tab, press on button Edit then add a role readWriteAnyDatabase to the user. Try again or refresh your connection to see the result.

提交回复
热议问题