2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to print out more than 20 items (documents) in MongoDB's shell?

db.foo.find().limit(300)

won"t do it... it still prints out 20

db.foo.find().toArray()

db.foo.find().forEach(printjson)

will both print out very expanded view of each document instead of the 1-line version for find():

userimage
Answer is