DDCODE

Share programming skills from Magic Oriental

upArrow

Is there a way to format the find () return result under the MongoDB command line

 May 12, 2019   mongodb, question

Usedb.collection.find()Return data, each one takes up a whole row, there is no format at all, so it is very difficult to read. I wonder if there is any way to format the returned value, such as one row for each key-value.

db.collection.find().pretty();

Pretty Output

Related Posts:

  • The result of running code with python's…
  • If it is good to use sql to calculate and return the…
  • If it is good to use sql to calculate and return the…
  • The query result is used as a condition for…
  • How do I copy the command return results to the…
  • How can vim be configured to automatically execute a…
  • Git used reset to return to the previous version…
  • Is there any way to set the contents on the command…
  • Mac docker, how to Restart Restart on the Command…
<< Mongo php-fpm connection pool problem Is MongoDB’s single document size limit 16M? Does this include embedded subdocuments? >>

Related Posts:

  • The result of running code with python's…
  • If it is good to use sql to calculate and return the…
  • If it is good to use sql to calculate and return the…
  • The query result is used as a condition for…
  • How do I copy the command return results to the…
  • How can vim be configured to automatically execute a…
  • Git used reset to return to the previous version…
  • Is there any way to set the contents on the command…
  • Mac docker, how to Restart Restart on the Command…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme