diff --git a/source/reference/method/version.txt b/source/reference/method/version.txt new file mode 100644 index 00000000000..b4fef4e8bda --- /dev/null +++ b/source/reference/method/version.txt @@ -0,0 +1,13 @@ +========= +version() +========= + +.. default-domain:: mongodb + +.. method:: version() + + Return the version of the :program:`mongo` shell as a string. + + .. versionchanged:: 2.4 + In previous versions of the shell, :method:`version()` would + print the version instead of returning a string.