Type Alias ResourcePatch
type ResourcePatch = {
inc?: Readonly<Record<string, number>>;
set?: Readonly<Record<string, unknown>>;
unset?: readonly string[];
}
inc?: Readonly<Record<string, number>>;
set?: Readonly<Record<string, unknown>>;
unset?: readonly string[];
}
The change a declared write makes to a row when it is not one of the modes.
setwrites a JSON constant, or the value at a dotted path of the request body when it is{ body: '<path>' }.incadds a number to a numeric field, a missing field counting as 0.unsetremoves fields.