How to Print Out More Than 20 Items in MongoDB Shell?

Beginning with MongoDB 3.0, you can control the output of every query with a new shell variable called dbqueryformat. You can change this variable to include more options like count, even, or select(). The available options are shown below, but many more are available via the command line help utility. For example, running mongo pg(CTL) show collections will only list all owned collections by default. 

how to print more than 20 documents mongo shell

By Evil ElephantEvil Elephant on Dec 03, 2020
db.collection.find().toArray()

Add Comment

0

how to print more than 20 documents mongo shell

By Evil ElephantEvil Elephant on Dec 03, 2020
DBQuery.shellBatchSize = 300

Add Comment

0

If you want to see all collections as well as all indexes that map any collection to any key want to see nested collections (which are also owned collections), use pg(ctl) help nested.

Javascript answers related to "how to print more than 20 documents mongo shell"

View All Javascript queries

Javascript queries related to "how to print more than 20 documents mongo shell"

Browse Other Code Languages

CodeProZone