Java, C++, Database, Algorithms, Searching, Sorting, Linklist, Tree, Number Theory, String, Array, Graph, MongoDB, Mysql, Oracle
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