How to see JSON data in MongoDB?

Modified on Tue, 4 Apr, 2023 at 4:17 PM

Run setup_mongo.sh which will add restaurant lists in MongoDB after then run the mongo command on the terminal and open the mongo shell where we have to write command,


show dbs -> use restaurant-database -> db.<collection_name>.find() i.e the collection_name is restaurants. 


Eg: db.restaurants.find()

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article