Member Junction
    Preparing search index...

    Foreign-key lookup configuration for resolving a name or match field to a foreign-key ID.

    interface FieldLookupConfig {
        matchField?: string;
        onLookupMiss?: "null" | "fail" | "create";
        relatedEntity?: string;
    }
    Index

    Properties

    matchField?: string

    Column on the related entity to match against (default 'Name').

    onLookupMiss?: "null" | "fail" | "create"

    Policy when lookup yields no matching record: 'null' (write null), 'fail' (throw error), 'create' (create new record and use its ID). Default 'null'. Note: 'create' creates a new record setting only matchField, intended for lookup/type tables where other columns are nullable or have defaults.

    relatedEntity?: string

    Target related entity name or ID to look up against. Derived from field metadata if omitted.