@squidcloud/client
    Preparing search index...

    Interface RelationshipInferenceFinding<ItemType>

    One thing a relationship-inference run found.

    interface RelationshipInferenceFinding<ItemType = Record<string, any>> {
        applied: boolean;
        association?: ItemType;
        dependency?: ItemType;
        discriminator?: ItemType;
        eligible?: boolean;
        kind: "dependency" | "association" | "discriminator";
        notAppliedReason?: string;
        signature: string;
    }

    Type Parameters

    • ItemType = Record<string, any>
    Index
    applied: boolean

    Whether the finding went into the stored schema.

    association?: ItemType

    A relationship between two collections, as the schema's associations hold it.

    dependency?: ItemType

    Two columns of a row that fix each other, as the schema's columnDependencies hold it.

    discriminator?: ItemType

    A column whose value decides what the rest of its row means, as the schema's discriminators hold it.

    eligible?: boolean

    Whether the finding passed every check at the minimum confidence or above.

    kind: "dependency" | "association" | "discriminator"

    Which of association, discriminator and dependency holds the finding.

    notAppliedReason?: string

    Why the finding did not go into the stored schema.

    signature: string

    Identifies the finding; without its kind prefix, it is the item's key in the schema.