Write your statement below and press "Run" to see the result.
Click here to reset the database to its initial state (all your changes will be lost).
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.