• Start

Languages

/

Mojo

/

Methods

kill

The kill() method for the SurrealDB Mojo SDK stops a running live query.

Stops a running live query, using the query id returned by live_query().

Method Syntax

client.kill(query_id, session)
ArgumentDescription
query_idThe id of the live query to stop.
sessionAn optional session id.
var query_id = client.live_query("person")
# ... later ...
client.kill(query_id)

Was this page helpful?