Format find () in the MongoDB command line and return the result: pretty () db. collection. find (). pretty (); www.2cto.com to add a permanent method, execute the following code in shell echoDBQuery. prototype. _ prettyShelltrue ~. Mongorc. js is pretty () anytime, anywhere.
Format find () in the MongoDB command line and return the result: pretty () db. collection. find (). pretty (); www.2cto.com to add a permanent method, execute the following code in shell echo DBQuery. prototype. _ prettyShell = true ~ /. Mongorc. js is pretty () anytime, anywhere.
Format find () in the MongoDB command line. The returned result is: pretty ()
Db. collection. find (). pretty ();
Www.2cto.com
Add a permanent method and execute the following code in shell:
Echo
"DBQuery. prototype. _ prettyShell = true"
>
~ /.
Mongorc
.
Js
In this way, pretty () is used anytime, anywhere.