I am using MongoDB Atlas as my database.
I am using angular4 with loopback as api.
My application connects perfectly to my database. However, when I try to get the data, I get this error (I replaced my dbname with dbname):
MongoError: user is not allowed to do action [find] on [dbname.$cmd]
The request works fine if I use the local mongodb client or the mongodb instance on AWS. However, when using the atlas I get this error.
source
share