Navigation

version()

version()
Returns:The version of the mongo shell as a string.

Changed in version 2.4: In previous versions of the shell, version() would print the version instead of returning a string.