Row
Row<
S,TSchema> ={ readonly [K in keyof S as Selected<S[K]> extends true ? K : never]: FieldValue<K, TSchema> }
Defined in: src/query/selection.ts:120
One result of selection S, through schema TSchema or without one: the selected entity fields
and attributes side by side, flat. Through a schema each attribute is typed as its column
declares; without one it is whatever value the entity holds, or undefined. Accessing an
unselected field is a compile error.
Type Parameters
Section titled “Type Parameters”S
TSchema
Section titled “TSchema”TSchema extends Schema | undefined = undefined
Example
Section titled “Example”// select({ $key: true, title: true }) → { $key: Hex; title: ArkivValue | undefined }// select({ $key: true, title: true }).from(Posts) → { $key: Hex; title: StrValue }