MongoDB can be used locally or hosted on cloud , in any case MongoDB Compass is a great tool for managing collections.
Compass come with a console, which you can use manipulate docs. Let’s learn how to explore documents
List all document
we can list collection using the following on terminal/ Compass console
use myDB db.users.find()
Here use myDB is is used to change the database and access the collection using db.< collection>.find() to list all json documents inside it.
You may also love to read following tutorials
- How to list all documents in MongoDB collection - How to list all documents in MongoDB collection using console.