so I just deployed a MongoDB cluster in Atlas. I configured the users, and restored a backup from a previous database.
Now, when I try to connect to the database from node, with this URI: 'mongodb+srv://<-USER>:<-PWD>@<-HOST>/<-DB>?retryWrites=true' i run into some problems.
The connection is successfull, but whenever I send a request and the node server tries to query the database the connection yields the following error: {"name":"MongoError","message":"user is not allowed to do action [find] on [admin.]","ok":0,"errmsg":"user is not allowed to do action [find] on [admin.]","code":8000,"codeName":"AtlasError"}
It seems the connection is querying the admin database, even though i do especify a different database in the <-DB> parameter of the URI.
Any ideas?
Thanks in advance!