db.version()

  • db. version ( )
Returns:The version of the mongod or mongos instance.