SurrealDB icon

SurrealDB

Interaction with a SurrealDB database

Record → Get Record

AI-generated

Summary

Retrieve a single record from a SurrealDB table using the record's unique ID, optionally specifying the namespace and database context and configuring connection pooling for performance.

Inputs

  • Table — SurrealDB table name (e.g., "person", "product") or empty if the full record ID includes the table prefix; the table will be extracted automatically if omitted.
  • Record ID (required) — Unique identifier of the record to get, which can optionally include the table prefix (e.g., "person:john", "product:abc123").
  • Options — Collection of optional parameters to override credential defaults, including Namespace and Database for this operation.
  • Connection Pooling — Optional configuration of connection pooling parameters such as max/min connections, timeouts, retries, and validation settings to optimize connection management and performance.

Output shape

a single record object matching the queried Record ID

Returns the data for the specified record as a single JSON object. If the record does not exist or an error occurs, the node may return an error response accordingly.

Links

Discussion