I am trying to complete this lab but am not able to pass the tests.
When I hope the in-browser IDE, I access the instance and start up the shell with this command:
mongo --port 27000 -u "m103-admin" -p "m103-pass"
Then I try to create the user with this command:
db.createUser(
{ user: "m103-application-user",
pwd: "m103-application-pass",
roles: [ { db: "applicationData", role: "readWrite" } ],
}
)
Anyone able to see where I am going wrong here? I know I also need to set the authentication source as admin for the user I’m creating but I’m not sure how to do so.