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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework