title: How to print out more than 20 items (documents) in MongoDB's shell?
body: <pre><code>db.foo.find().limit(300)
  </code></pre>
  
  <p>won't do it. It still prints out only 20 documents.</p>
  
  <pre><code>db.foo.find().toArray()
  db.foo.find().forEach(printjson)
  </code></pre>
  
  <p>will both print out very expanded view of each document instead of the 1-line version for <code>find()</code>:</p>