Meta functions
Note
These functions can be used to retrieve specific metadata from a SurrealDB Record ID.
| Function | Description |
|---|---|
meta::id() | Extracts and returns the identifier from a SurrealDB Record ID |
meta::tb() | Extracts and returns the table name from a SurrealDB Record ID |
meta::id
The meta::id function extracts and returns the identifier from a SurrealDB Record ID.
The following example shows this function, and its output, when used in a RETURN statement:
meta::tb
The meta::tb function extracts and returns the table name from a SurrealDB Record ID.
The following example shows this function, and its output, when used in a RETURN statement:
This function can also be called using the path meta::table.