SurrealDB Docs Logo

Enter a search query

.LiveRawQuery<T>()

Initiate a live query from a SurrealQL statement, based on a raw SurrealQL query.

Method Syntax
await db.LiveRawQuery<T>(sql, params)

Arguments

ArgumentsDescription
sql required

Specifies the SurrealQL statements.

params optional

Assigns variables which can be used in the query.

cancellationToken optional

The cancellationToken enables graceful cancellation of asynchronous operations.

Example usage

await using var liveQuery = await db.LiveRawQuery<Person>("LIVE SELECT * FROM person;"); // Consume the live query...

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install