Is it possible to connect via mongo shell in read-only mode?

Viewed 212

Is there any way to connect to MongoDB using mongo shell with read-only mode?

$ mongo "mongodb://mongodb0.example.com:27017/?readOnly=true"

I know I can create read only user then connect to DB.

0 Answers
Related