M121; 1st week; 1st chapter; Lab - $match

Hello every one , I am using command:
mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

and then show dbs, then use movies, at this stage seems to be all ok. Then I try to use command show collections and receive first error:
Warning: unable to run listCollections, attempting to approximate collection names by parsing connectionStatus

and then after I try to db.movies.findOne() i receive next error:
https://gyazo.com/a4111511f29f03092985852edccc3e90?token=88977adf87b177581cf8d1f954b95584

Hi,

The user m121 is only allowed to access to the aggregations database, it has no access to any other database. Please note that there’s a movies collection in the aggregations database (which you are connected to with the command you used).

José Carlos

I think I am in m121 course because I see lessons chapter etc. And I use only command from chapter. And I wrote that I use command use movies and receive notification switched to db movies in console

Hi,

If you typed use movies, then the global db variable points to the movies database. Please note that you must be connected to the aggregations database, there’s a movies collection in such database.

José Carlos