IT/Database
[mongodb] shell에서 find할 때 pretty() 기능 사용 (출력 이쁘게 나옴)
DreamKiHyun
2014. 9. 18. 15:56
1. 수동
db.collection.find().pretty()
2. 자동
DBQuery.prototype._prettyShell = true
to your file in $HOME/.mongorc.js
to enable pretty print globally by default.
출처 : http://stackoverflow.com/questions/9146123/pretty-print-in-mongodb-shell-as-default