I'm new to using Mongo, so sorry if this is basic. When I run "show collections" I only get partial results. I'm trying to figure out the best way to add the missing collections.
Any help is greatly appreciated.
I'm new to using Mongo, so sorry if this is basic. When I run "show collections" I only get partial results. I'm trying to figure out the best way to add the missing collections.
Any help is greatly appreciated.
Try calling db.getCollectionNames().join()
. It's possible your shell window is not displaying the output of show collections
correctly. The join()
method will print all the elements of the collections array in a single (word-wrapped) line. Perhaps this difference in display will yield the missing collections.
This answer suggests you can use db.listCollections()
on version 2.x or higher.