dyna-record
    Preparing search index...

    Type Alias RelationshipConditions<T>

    RelationshipConditions: {
        [K in RelationshipProperties<T>]?: NonNullable<T[K]> extends readonly (
            infer R
        )[]
            ? RelatedEntityCondition<AssertDynaRecord<R>>[]
            : TargetCondition<AssertDynaRecord<NonNullable<T[K]>>>
    }

    The relationship keys of a write condition, by relationship property name.

    A BelongsTo or HasOne has one target, which the library resolves, so it takes a TargetCondition. A HasMany or HasAndBelongsToMany has many, so it takes RelatedEntityCondition entries naming each one by id.

    Type Parameters

    • T extends default

      The entity declaring the relationships.