Navigation
Reference
>
mongo
Shell Methods
>
Database Methods
>
db.version()
db.version()
¶
db.
version
(
)
¶
Returns:
The version of the
mongod
or
mongos
instance.
←
db.stats()
db.watch()
→
Search Results
MongoDB Manual
All Results
Was this page helpful?
Yes
No
Documentation
Docs Home
Documentation
MongoDB Server
Drivers
C
C++
C#
Java
Node.js
Perl
PHP
Python
Ruby
Scala
Cloud
MongoDB Atlas
MongoDB Atlas Data Lake
MongoDB Atlas Search
MongoDB Cloud Manager
MongoDB Ops Manager
MongoDB Realm
Tools
MongoDB Atlas Open Service Broker
MongoDB BI Connector
MongoDB Charts
MongoDB Command Line Interface
MongoDB Community Kubernetes Operator
MongoDB Compass
MongoDB Database Tools
MongoDB Enterprise Kubernetes Operator
MongoDB Kafka Connector
MongoDB Shell
MongoDB Spark Connector
MongoDB for VS Code
Guides
Company
Learn
Community
What is MongoDB
Get MongoDB
Contact Us
Server
Drivers
Cloud
Tools
Guides
Get MongoDB