When I open a collection, it only displays the first 50 documents rather then all of them. How do I make it so that RoboMongo display all documents in the collection (preferably automatically)?
robomongo result
The query is run only when you want it run, by clicking the “play” arrow in the toolbar, typing Command/Control-Enter in the text box or pressing F5.
Robo 3T (formerly Robomongo)A desktop application embedding the MongoDB shell. A GUI for MongoDB enthusiasts. Purpose: GUI. Maintenance status: Actively Maintained. Minimum MongoDB version: 2.2.
UPDATE 06 december 2019: The initial solution is not working from the v1.3.1 of Robomongo. If you enter 0, Robomongo will throw an error. See the EDIT 1 for new solution.
There is an input at the upper right which gives you the possiblity to change the number of displayed documents, just under the query. Change it to 0 and press Enter. It'll load all documents.
Even if the 50 reappears after, you have all documents displayed.
EDIT 1: The above seems to be fixed in the newer releases (from v1.3.1).
As suggested by @learnsomemore in the comments, you can add DBQuery.shellBatchSize = 500;
before your query to change the returned array size.
This was originaly given in a comment by @davidm06 in the GitHub issue "Aggregate only shows 50 results #1157" from the RoboMongo public repository.
You can also use toArray() at the end to get the whole result at once.
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