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); Copy
await update('table_name', { title: element.title, ...optional(element.description, val => ({ description: val })), }, { id: elementId }, ).run(ctx);
value to be used to update a property
mapping function that will return an update object for the property
Generated using TypeDoc
Function to be used to construct an update object. If value is null or undefined - property will not be updated. Example: