db.collection.find().pretty();
补充个一劳永逸的方法,在 shell 里执行下列代码
echo "DBQuery.prototype._prettyShell = true" >> ~/. mongorc . js
这样随时随地都是 pretty() 了
db.collection.find().pretty();
补充个一劳永逸的方法,在 shell 里执行下列代码
echo "DBQuery.prototype._prettyShell = true" >> ~/. mongorc . js
这样随时随地都是 pretty() 了