In my mongodb one database contains thee collections, but when i run Robomongo 0.8.5 collections of my database are not shown(left side of the Robomongo 0.8.5(file explorer).
If i run following query in Robomongo 0.8.5, it shows all the collection.
db.stats()
another query to show collection
db.collectionName.find()//it shows all documents in collection
please suggest solution for this problem.
MongoDB stores data records as documents (specifically BSON documents) which are gathered together in collections. A database stores one or more collections of documents.
How do you list all collections in MongoDB? You can show all the available collections in the database you are working in my using the show collections method. Alternatively, you can also use the db. getCollectionNames() method to get the same results in an array.
In general, we recommend limiting collections to 10,000 per replica set. When users begin exceeding 10,000 collections, they typically see decreases in performance. To avoid this anti-pattern, examine your database and remove unnecessary collections.
Creating the first Collection in the MongoDB Database using Robo 3T. Once the database is created, click the arrow on the left-side of the testDatabase then right click on the Collections(0) folder (0 means no collection) and select the Create Collection... in the menu.
Robomongo 0.8.x is not compatible with MongoDB 3.x. Try MongoChef.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With