How can i run find query on system.views collection in a database?
I am getting “not authorized to execute command” error.
Hi @Vishal_Ghodake ,
What are you trying to query about the views?
You can get a list of views in the MongoDB shell by using the below command
db.getCollectionInfos({type: 'view'});
It will give you a list of all the views in your current database.
1 Like