ReturnType
ReturnType =
"NONE"|"none"|"BEFORE"|"before"|"AFTER"|"after"|"DIFF"|"diff"|string[] | {value:string; } |BoundQuery|Expr
Defined in: define/table/types/query.ts:255
Defines the RETURN clause options for INSERT/UPDATE statements.
"NONE"- Return nothing"BEFORE"- Return the record before the operation (for INSERT, same as NONE)"AFTER"- Return the record after the operation (default)"DIFF"- Return the changeset diffstring[]- Return specific fields{ value: string }- Return VALUE of a single fieldBoundQuery- Native SurrealQL expression (e.g.,surqlid, name, count(<-comment)“)`Expr- SurrealDB expression