Using: restaurants (mongo)

Write your statement below and press "Run" to see the result.

Back to Playground overview


Click here to reset the database to its initial state (all your changes will be lost).


Enter MongoDB Javascript commands in the text area. Pressing "Run" will present the result of the MongoDB shell output. Try db.getCollectionNames(); to see defined collections and db.COLLECTIONAME.find(); to retrieve a list of documents inside the given collection. See the MongoDB reference for useful commands.

© Principles of Database Management 2021.
Send us your feedback.