• Start

Languages

/

Mojo

/

Methods

version

The version() method for the SurrealDB Mojo SDK returns the database version.

Returns the version of the connected SurrealDB server as an RpcResponse.

Method Syntax

client.version()

This method takes no arguments.

var resp = client.version()
if resp.is_ok() and resp.result:
print(resp.result.value())

Was this page helpful?