Answers for "view mongodb database"

4

mongo db show datbae

show dbs
Posted by: Guest on July-08-2020
0

show dbs in mongodb

//show all databases
db.adminCommand( { listDatabases: 1 } )
Posted by: Guest on July-14-2021
0

view mongodb database

>db.mycol.insert({
   _id: ObjectId(7df78ad8902c),
   title: 'MongoDB Overview', 
   description: 'MongoDB is no sql database',
   by: 'tutorials point',
   url: 'http://www.tutorialspoint.com',
   tags: ['mongodb', 'database', 'NoSQL'],
   likes: 100
})
Posted by: Guest on March-16-2021

Browse Popular Code Answers by Language