• Function to be used to construct an update object. If value is null or undefined - property will not be updated. Example:

       await update('table_name',
    {
    title: element.title,
    ...optional(element.description, val => ({ description: val })),
    },
    { id: elementId },
    ).run(ctx);

    Type Parameters

    • T

    Parameters

    • val: T

      value to be used to update a property

    • map: ((val) => Dict<T>)

      mapping function that will return an update object for the property

        • (val): Dict<T>
        • Parameters

          • val: T

          Returns Dict<T>

    Returns false | Dict<T>

Generated using TypeDoc