Function to be used to construct an update object. If value is undefined - property will not be updated. If value is null - it will be set. Useful for Date properties. Example:
await update('table_name', { title: element.title, ...nullable(element.released, val => ({ released: val })), }, { id: elementId }, ).run(ctx); Copy
await update('table_name', { title: element.title, ...nullable(element.released, val => ({ released: 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 undefined - property will not be updated. If value is null - it will be set. Useful for Date properties. Example: