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
Output:
5.0.6
No comments:
Post a Comment