getMongo()
This method returns the current database connection. By this method, we can check currently to which database we are connected.
Syntax:
db.getMongo()
Example
MongoDB
Output:
connection to 127.0.0.1:27017
No comments:
Post a Comment