What is default database in MangoDB?
Answers
Answered by
0
getSiblingDB("mydb")
The .mongorc.js file is executed after the mongo shell is started, so if you set a default here it will override a database specified on the command line.
The .mongorc.js file is executed after the mongo shell is started, so if you set a default here it will override a database specified on the command line.
Similar questions