version() – Return the version of the current database command

Returns the version of the current database.

Syntax diagram

Read syntax diagramSkip visual syntax diagramdb.version()

Command parameters

No parameters.

Examples

The following example shows the command syntax for returning the version of the current database:
db.version()
The following example shows the syntax of a value returned from running the version command:
12.1