Skip to content

Lookup

Lookup = object

Defined in: packages/schema/src/lookup/lookup.ts:6

The record a lookup field reads and the field it shows (.lookup()). Without from the record is the one this record’s relation via points at (belongs to); with from it is the one record of from whose relation via points at this record (has one). See Lookups.

field: string

Defined in: packages/schema/src/lookup/lookup.ts:12

The field of the linked record it shows.


optional from?: string

Defined in: packages/schema/src/lookup/lookup.ts:10

The resource holding, for each record, at most one record whose via points at it; omitted for this resource’s own relation.


via: string

Defined in: packages/schema/src/lookup/lookup.ts:8

The relation of one column it goes through: this resource’s own, or from’s that points at this resource.