I'm completely new in databases and I'm trying to learn the MERN stack. I successfully created a cluster, but when I'm trying to create a database in MongoDB Atlas, it's just giving me an error:
user is not allowed to do action [createCollection] on [mydatabase.users]
What should I do? I literraly can't find the solution for this problem.
CodePudding user response:
The user needs to be granted with the readWrite role.