Relate

Function: computed()

function computed<Id>(options): ComputedProperty & {
  id: Id;
};

Defined in: packages/relate/src/computed.ts:15

Declare a read-only analytical property whose derived value is never persisted.

Type Parameters

Type Parameter
Id extends string

Parameters

ParameterType
options{ access?: FieldGroup<string>; description?: string; id: Id; sql: string; }
options.access?FieldGroup<string>
options.description?string
options.idId
options.sqlstring

Returns

ComputedProperty & { id: Id; }

On this page