MongoDB: db.version() method
db.version
The db.version() method is used to return the version of the mongod instance.
Syntax:
db.version()
Example: MongoDB: db.version() method
db.version();
Output:
> db.version(); 2.6.5
Retrieve the restaurants data from here
Previous:
db.stats() method
Next:
Mongodb User Management db.auth() method
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/mongodb/shell-methods/database/db-version.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics