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
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join