0

Why I am getting the dbname here ?

>db.getName() sampledb >db.dropDatabase() {"ok":1} >db.getName() sampledb I am new to Mongodb!!! My question is after deleting the database, why am I still getting the database name when I try to get the current database. It must have shown some kind of error rgt !!?

11th Aug 2022, 5:51 AM
Levi
Levi - avatar
1 Antwort
+ 1
Restart the console because you are accessing the same thing with same element To learn go to Codewithharry youtube
21st Aug 2022, 4:32 AM
RISHABH
RISHABH - avatar