mongodb - How to paginate output inside mongo shell -


is possible pipe results in pager within mongo shell?

the mysql cli equivalent be:

mysql> pager less

mongo shell paginates results if returned cursor not assigned variable. documentation:

...in mongo shell, if returned cursor not assigned variable using var keyword, cursor automatically iterated 20 times print first 20 documents match query. mongo shell prompt type iterate 20 times.

you can set dbquery.shellbatchsize attribute change number of iteration default value 20.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

how to receive file in java(servlet/jsp) -