Solved1.33K viewsMern Amazona

when i connect my website with mongodb atlas and perform any action then it show this error “user is not allowed to do action [find] on [mern-amazona]”

Question is closed for new answers.
Bassir Selected answer as best September 14, 2022

Assign the “readWrite” role to the user specified in the connection link.

In Atlas Mongodb

Database Access -> Select User ->Database User Privileges -> Specific Privileges -> readWrite role

Bassir Selected answer as best September 14, 2022