db.version() in mongoDB

version()

This method returns the version of the mongod or mongos instance. In other words, it returns the current version of mongo install.


Syntax:

db.version() 


Example

MongoDB

db.version()

Output:

5.0.6


No comments:

Post a Comment