TypedExpr
Defined in: define/table/types/select.ts:34
A SurrealQL expression with an associated TypeScript type.
Created using the typed() helper function.
Example
Section titled “Example”import { typed } from "unreal-orm";
const posts = await Post.select({ select: { title: true, commentCount: typed<number>(surql`count(<-comment)`), },});// Type: { title: string; commentCount: number }[]Type Parameters
Section titled “Type Parameters”T = unknown
The TypeScript type of the expression result.
Properties
Section titled “Properties”__type?
Section titled “__type?”
optional__type:T
Defined in: define/table/types/select.ts:38
Phantom type marker for type inference
expr:
BoundQuery<unknown[]> |Expr
Defined in: define/table/types/select.ts:36
The underlying SurrealQL expression