DDCODE

Share programming skills from Magic Oriental

upArrow

What is the difference between the two query methods of mongodb?

 May 12, 2019   mongodb, question
db.getCollection('diseases').find({})
 db.diseases.find({})

There is no difference. However, if the collection name contains special characters, only the first method can be used.
Special characters are not recommended for collection names.

Related Posts:

  • MongoDB Query (Difference between Two Fields as…
  • What is the difference between http-equiv…
  • The difference between mysql's range query and…
  • What is the difference between the two order…
  • What is the difference between the two order…
  • What is the difference between the binding methods…
  • Besides functional programming, reactive programming…
  • Mysql's my.ini file, the two blue places are…
  • What is the difference between MongoDB and Mongoose…
<< mongodb: directory-sync: open: Too many open files How does mongodb sort by array length? >>

Related Posts:

  • MongoDB Query (Difference between Two Fields as…
  • What is the difference between http-equiv…
  • The difference between mysql's range query and…
  • What is the difference between the two order…
  • What is the difference between the two order…
  • What is the difference between the binding methods…
  • Besides functional programming, reactive programming…
  • Mysql's my.ini file, the two blue places are…
  • What is the difference between MongoDB and Mongoose…

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