Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias ResourcePatch

    The change a declared write makes to a row when it is not one of the modes. set writes a JSON constant, or the value at a dotted path of the request body when it is { body: '<path>' }. inc adds a number to a numeric field, a missing field counting as 0. unset removes fields.

    type ResourcePatch = {
        inc?: Readonly<Record<string, number>>;
        set?: Readonly<Record<string, unknown>>;
        unset?: readonly string[];
    }
    Index
    inc?: Readonly<Record<string, number>>
    set?: Readonly<Record<string, unknown>>
    unset?: readonly string[]