iya-sts
    Preparing search index...
    update: (
        id: any,
        change: any,
    ) =>
        | {
            errors: string[];
            message?: undefined;
            ok: boolean;
            readiness?: undefined;
            relationship?: undefined;
        }
        | {
            errors?: undefined;
            message: string;
            ok: boolean;
            readiness: { missing: string[]; ready: boolean };
            relationship: {};
        } = update

    Type Declaration

      • (
            id: any,
            change: any,
        ):
            | {
                errors: string[];
                message?: undefined;
                ok: boolean;
                readiness?: undefined;
                relationship?: undefined;
            }
            | {
                errors?: undefined;
                message: string;
                ok: boolean;
                readiness: { missing: string[]; ready: boolean };
                relationship: {};
            }
      • Changes one attribute of a relationship.

        Parameters

        • id: any

          the relationship id

        • change: any

          field, value, and mode (add or another edit) for a multi-valued attribute

        Returns
            | {
                errors: string[];
                message?: undefined;
                ok: boolean;
                readiness?: undefined;
                relationship?: undefined;
            }
            | {
                errors?: undefined;
                message: string;
                ok: boolean;
                readiness: { missing: string[]; ready: boolean };
                relationship: {};
            }

        { ok: true, relationship, readiness, message }, or { ok: false, errors }